xyi/Library/PackageCache/com.unity.shadergraph@bd938c0c5e52/Editor/Data/Util/TextUtil.cs
Vladislav 2750530006 1
2025-09-18 15:33:57 +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");
}
}
}