Hello Unreal Community,
I’ve encountered a really frustrating issue in my recent project.
I have a struct that is resetting to default values every time I restart the Editor. I first noticed the issue yesterday and it’s been persisting ever since.
Brief overview of my setup: The struct in question is used within my base ability class (that has 3 other children for specific ability categories - Primary, Secondary and Ultimate where each then has children as well for the abilities themselves).
Interestingly, every time I restart the Unreal Editor, all members of this struct reset to their default values (but not for all abilities, weirdly).
Let’s say I want to change the Category (Enum). Depending on the child class, it is set to either Primary, Secondary, or Ultimate. Once I reset the editor, this goes back to the default value ‘Primary’ for each class.
Other members of the struct like Name, Icon, Cooldown etc., which are set within the actual abilities themselves (rather than the 3 parents), do not seem to be affected by this issue and persist as expected (however, 2 abilities reset anyway).
Since this is a bit hard to explain in plain text, I have recorded a quick video with my commentary.
I appreciate any help possible
Thanks!