So I have created Zoom ability to my pawn and I would like to be able to change the Maximum and Minumum zoom in the editor
So I created this in the .h file:
which worked!
but I decided to tweak the values in the editor to get a more feasible value, but for some reason when I changed the value in editor nothing changed in zooming.
So I went in the code changed it manually and then it worked.
Why is it that when I change the value in the editor doesnt work but when I change the value in code it works?
Ah, it’s possible sometimes for serialized data to not be properly updated on blueprint instances that are already placed somewhere or created. In fact in my experience, BP’s tend to store a lot of redundant data when you change your classes.
You can test this theory by:
Adding a uproperty, and setting it to a non-default value in a Blueprint.
Save the Blueprint
Remove the UPROPERTY from c++, open the blueprint, recompile and saved.
Add the property back in C++. If you open the blueprint, the old value you entered is somehow still saved.