(Solved)Serialize Field Result In Inspector

How does the unity inspector display the field as “Text Component” in the inspector when the name of the variable we assigned was textComponent?

1 Like

The editor recognises the camel casing and assumes that you’d like the words separated for readability in the inspector. If you use any other convention then it will not display differently in the inspector, so ‘text_component’, ‘text_Component’, or ‘textcomponent’ would all display verbatim in the inspector.

2 Likes

Thanks for the Reply.

Regards,
Akchunya

Privacy & Terms