Upgrade to unity 5, Inspector change how it display variable name

ve just upgraded my project to Unity 5.

I’ve still one issue. Inspector don’t display my variable name like they use to be.
(of course changing my naming convention of 10 of thousands of code line is not a solution :slight_smile: )

For a varibale “m_fGrabRange” it dispaly" F Grab Range" instead of
“GrabRange” like in Unity 3 and 4.6

(Artist don’t need to know the variable type)

How can I fix that ?

Previous suggestion:
Replace var name (impossible thousand of var name)
Using PropertyDrawer: need to make one te reaplace every var type (with enum/class etc… it’s also really heavy to do)

Thanks in advance for your help

Here’s how I see the variable public float m_fGrabRange; exposed in the inspector:

49634-hungarian.png

In other words, your artist has always been able to see the variable type, it’s just that in some update Unity appears to be inserting an extra space between the type prefix and the name when displaying Hungarian-named variables, although I can’t see this documented in the Release Notes. Does it really cause that much of a problem?

I’m not sure if this was intended or not on the Unity 5 version, maybe you should ask in the forum or create a ticket reporting it as bug, I’m not sure Unity devs use UnityAnswers.

I’ve reported the bug to Unity.
Thanks for your help
(I just wish unity let you configure the way var are displayed)

Hello tanoshimi, you’re right, I’ve tried and there is the F already in previous version.
It’s just less readable now (more potential mistakes).
I use propertydrawer to fix basic type (float, int and bool). But it’s impossible for other type (It would need to make a propertydrawer for every new type of monobehaviour, enum etc…)

I’ve reported the bug to Unity. Thanks for your help
(I just wish unity let you configure the way var are displayed)