I have a few variables in my C++ class inherited from ActorComponent. I set some default values in header .h file, like this:
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Attack, meta = (AllowPrivateAccess = "true"))
float m_cooldown = 0.001f;
Then I set a different default value for this propertry in BP, but sometimes after compilation it reseted back to a value I have in .h file (0.001f).
Did I do something wrong? Is there way to fix this? This is very annoying
I saw people reported similar issues like 5-7 years ago, but I don’t believe this was not fixed till now.
Thanks