Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Feature Request] Add constructor for Blueprints derived from Object class


I'm using a blueprints derived from Object type for creating code-only (logic-only) blueprints (without Viewport tab.) Look to picture below to understand what I mean.

Step 1: Creation of blueprint derived from Object class

alt text

But the main problem is that blueprints derived from Object doesn't have any Construction Script or something like C++ constructor. So, for set the initial state of object, I must use additional procedure named Init or Constructor, which is called exactly after blueprint instance is created via Construct Object from Class - it's really annoying! Look to the pic.

Step 2. Creation of BlueprintDerivedFromObject and then call of Init function

alt text

This will be really cool if you can make some kind of Construct or ConstructionScript for such kind of blueprints. It'll make a life a bit easier.

Thanks for your attention!

Product Version: UE 4.11
pic-1.jpg (65.9 kB)
pic-2.jpg (83.7 kB)
more ▼

asked Apr 21 '16 at 05:39 PM in Everything Else

avatar image

96 2 5 9

avatar image Skitak Jun 28 '17 at 10:52 AM

I would also like that feature please, it would help us create cleaner code and improve reading speed. Thanks.

PS: I'm using Unreal Engine version 4.15 and I don't think it was added in 4.16 either.

avatar image Nachtmahr Jun 28 '17 at 11:30 AM

Does not make Sense for a UObject. I could provide a long list of why but I seriously wont make the attempt. Just create a Init function and Call it.

avatar image Strombonni Apr 13 '18 at 01:01 AM

"Does not make Sense for a UObject. I could provide a long list of why but I seriously wont make the attempt. Just create a Init function and Call it."

Seems to me that it ABSOLUTELY makes sense for a UObject, for the same reason that most objects have a constructor! In fact, it's odd that it doesn't.

So please provide this fictional long list of why, otherwise your comment should be disregarded as useless.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question