StellarXipher/Library/PackageCache/com.unity.shadergraph@d57efd43b1c1/Editor/Data/Util/TextUtil.cs
2025-02-06 16:45:46 -05: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");
}
}
}