where is the Constructor concept in Blueprints
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.
asked May 28 '18 at 03:08 PM in Blueprint Scripting
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here