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"

where is the Constructor concept in Blueprints

Hi everyone,

Honestly i don't know anything about "Constructors" , i came across them in C# in Unity , So where is the concept of a "Constructor" inside of UE4 blueprints !!??

Thank you for your help.

Product Version: UE 4.19
more ▼

asked May 28 '18 at 03:08 PM in Blueprint Scripting

avatar image

19 3 6 12

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

1 answer: sort voted first

I think the closest to it is construction script, but keep in mind it is executed also in editor (spawn, placement on level nad moving in the level editor) and main function of it set up postioning of things and appearance depending on location actor is place. For start up code in game play you should BeginPlay event.

C++ have constructors, but due to way UE4 and UObjects operates they are exclusively used to set default vlaues, so blueprint direct equivalent here is just defaults. In C++ there many start up events (including mentioned BeginPlay) which is called in variues stages of object construction, you can hook up to any of those.

more ▼

answered May 28 '18 at 04:12 PM

avatar image

36.7k 932 169 1111

avatar image Carter10 May 28 '18 at 08:03 PM

Hi, Thank you for your response , i guess from what i'm understanding , since the construction script is just a special function , the constructor could be just a special function that has default values held within then we can call it on tick or begin play i'm not sure of that.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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