UPROPERTY(EditAnywhere) variable when changed in the editor dont reflect in the game
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: Code:
declared them in the constructor and made created a method for zooming ability in .cpp: Code:
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?
Remember that Im spawning the Blueprint drived from the c++ class. I have tried it both ways.
asked Jul 14 '17 at 04:54 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here