Skip to content

Commit

Permalink
fix: Label等で数字が正常に表示されない不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pspkurara committed Nov 6, 2020
1 parent a26aeff commit 0aeac91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Packages/uGUI-Skinner/Editor/SkinnerEditorUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,12 @@ public static void DrawLine()

public static string GetEditorName(string name)
{
return name;
var m = Regex.Matches(name, "[\\x41-\\x5a]+[\\x61-\\x7a]*");
var m = Regex.Matches(name, "[\\x41-\\x5a]+[\\x61-\\x7a]*|[\\d]+");
StringBuilder builder = new StringBuilder();
for (int i = 0; i < m.Count; i++)
{
builder.Append(m[i].Value);
builder.Append(" ");
builder.Append(name.Substring(m[i].Index, m[i].Length));
if (m.Count - 1 != i) builder.Append(" ");
}
return builder.ToString();
}
Expand Down

0 comments on commit 0aeac91

Please sign in to comment.