Showing a private variable in the properties panel?
I just wanted to see if there was a way to show the value of a variable as non-editable in the properties panel? I have my script as construction script and didn't really want to start messing with widgets unless totally necessary.
Thanks for any assistance :)
asked Oct 16 '18 at 02:15 PM in Blueprint Scripting
Unfortunately you cannot do this is blueprints, (I really wish we could) It is easy to do in c++ though.
When creating a variable in c++ you can simply add VisibleAnywhere to its Uproperty and it will show up in the editor and not be editable.
The BlueprintReadOnly tag allows the variable to be accessed only as a blueprint getter.
And finally if the variable is always updating its value in the constructor based off of other variables values and you wanted the correct value to always show up in the editor for "MyFloatVariable" you would need to put that calculation inside the function PostInitProperties().
Follow this question
Once you sign in you will be able to subscribe for any updates here