How can i make a new string variable that only the first letter will be big ?

public string Objectstosortbyname;

But with spaces i want it to be displayed like this:

Objects to sort by name

I can make:

public string ObjectsToSortByName;

But then it will look like: Objects To Sort By Name

And i’m not sure what is the best way to show it to the user ? Objects to sort by name or Objects To Sort By Name

Use something like this if you’re talking about the inspector drawer label?

You are probably being overly pedantic. Unless you need a custom inspector, writing one just to deal with capitalisation seems a little overkill.

I’m honestly surprised unity didn’t include an attribute to change the display name for a field in the inspector without having to write a custom editor.

There is header, tooltip, spaces, textareas, and whatnot… but no ‘Label’.

1 Like

Me too. Its a super obvious one that wouldn’t take much to build.

A feedback item might be a good idea.