is there a way to call a function that is executed in the editor after the ActorComponent’s variables are initialized from the properties we set in the editor?
With actors construction script / constructor works fine, but the component’s variables aren’t set when the component’s constructor or when the owner’s constructor is executed.
Unfortunately it’s an ActorComponent, not an actor.
I also tried PostInitProperties() - it is called every time I change a value in the editor on the component, but the result is the same: I see default values.
Ohh on ActorComponent, sorry . . . well try with InitializeComponent.
Initializes the component. Occurs at level startup. This is before BeginPlay (Actor or Component). All Components in the level will be Initialized on load before any Actor/Component gets BeginPlay Requires component to be registered, and bWantsInitializeComponent to be true.