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.

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.

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.