Hello dear community,
I have a door class in c++ with a boolean bOpen to define that the door is open or closed at the beginning (makes sense, doesnt it?)
When i place a door into the world i can edit this property since it an EditInstanceOnly UPROPERTY.
When you then click on the checkbox bOpen PostEditChangeProperty is called and i check the property’s name if its
Regarding its state i simply call Open() or Close() and inside those i call other functions which do the desired rotation for me (enabling tick events, set up timelines and delegates a.s.o).
While those rotation functions are called by some miracle, Open() and Close() are not called and though i dont get the desired result.
However, when i place the same behaviour inside BeginPlay() everything works fine and the door rotates regarding bOpen.
I got a hint from a friend that the compiler might inline Open() and Close(), so they are not valid when in Editor-Mode.
If so can someone tell me how i can prevent functions from being inlined?
I tried UFUNTION() above those two, but it doesnt changed anything.