changed to change it in property UI
This commit is contained in:
@@ -51,9 +51,6 @@ namespace FlaxEditor.CustomEditors.GUI
|
||||
/// <param name="name">The name.</param>
|
||||
public PropertyNameLabel(string name)
|
||||
{
|
||||
// Format name with capital first letter
|
||||
name = name[0].ToString().ToUpper() + name.Substring(1);
|
||||
|
||||
Text = name;
|
||||
HorizontalAlignment = TextAlignment.Near;
|
||||
VerticalAlignment = TextAlignment.Center;
|
||||
|
||||
@@ -912,6 +912,12 @@ namespace FlaxEditor.Utilities
|
||||
{
|
||||
var c = name[i];
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
sb.Append(char.ToUpper(c));
|
||||
continue;
|
||||
}
|
||||
|
||||
// Space before word starting with uppercase letter
|
||||
if (char.IsUpper(c) && i > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user