Adding uproperty to parent resets class defaults of children
Every time I add a uproperty to a parent class, all sub classes are reset to the parent default values.
This is using a first person project. Adding any form of value with the EditAnywhere tag completely breaks the FirstPersonCharacter originally setup by the editor as all values seem to be set to default.
EDIT: Even the subclass default values are deleted too.
EDIT: https://issues.unrealengine.com/issue/UE-51994 issue here, please vote up
I am also encountering this problem when changing/adding properties or changing constructor. I could solve this by not using hot reload when doing so.
That means if I do these changes I close Unreal Editor and compile my code. When I start the editor after that the values aren't reset.
You should be safe if adding variables or function which are not marked by UPROPERTY or UFUNCTION (except Constructor)
answered Dec 27 '17 at 11:34 PM
Hey there, i've already submited this bug when 4.18 was released, let's hope they fix it quickly. This only happens with Hot reload, so you have to constantly restart the engine if you change a lot of things in the header file. This is the issue file they gave me.
answered Dec 28 '17 at 10:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here