UnityGame/Library/PackageCache/com.unity.shadergraph/Editor/Data/Util/TextUtil.cs
2024-10-27 10:53:47 +03:00

13 lines
280 B
C#

using System.Text.RegularExpressions;
namespace UnityEditor.ShaderGraph
{
public static class TextUtil
{
public static string PascalToLabel(this string pascalString)
{
return Regex.Replace(pascalString, "(\\B[A-Z])", " $1");
}
}
}