- Home /
How can i create a string variable name that only the first letter will be big ?
public string Objectstosortbyname;
This will show it without spaces. I want to make it show like this:
Objects to sort by name
I did before:
public string ObjectsToSortByName;
Then in the editor it will make spaces between automatic. But i don't want big letter in each word. Only the first word like this:
Objects to sort by name
Answer by UnityCoach · Dec 05, 2016 at 06:14 PM
Well, Unity Editor is tailored to convert CamelCase to phrases. You would have to make a Custom Editor if you really wanted to do that.
Anyway, C# convention is camelCase for members, and it really helps when to comes to read the code.
public string objectsToSortByName;
Your answer
Follow this Question
Related Questions
How do i use a public sealed class to create objects and destroy them ? 0 Answers
How can I call the Load method and/or the ShootingSettings method also only once in the Update ? 1 Answer
How can i check and fire an event when the user look at specific object ? 0 Answers
How can i List objects by name but also in small text or big text or any kind ? 1 Answer