How to change visible variable name in editor
What I'm trying to achieve is to have variable in cpp named differently than variable in editor. For example:
In cpp I want to have it named SuperProjectilePlayerHitted .
And in editor I want to have it named ProjectileFX .
I tried use meta = (Displayname = "name") like this:
But without luck. Result looks like this:
Is there way how to show different name in editor than variable from cpp ? Sometimes I need create self-describing names in cpp, but I don't need long names in editor.
Thanks a lot.
It doesn't seem that there is an easy way to do this cleanly. The relevant code in
However, what you can do is the following, slightly hacky, workaround:
Then the component appears as
A better solution might be to use the short name for the variable, but to make it private and provide accessors with the longer names that you want to have in your C++ code.
Follow this question
Once you sign in you will be able to subscribe for any updates here