Files
CartoonFPS/Library/PackageCache/com.unity.shadergraph@052d95cfe62a/Editor/Data/Util/TextUtil.cs

13 lines
280 B
C#
Raw Normal View History

2025-08-05 09:30:40 +01:00
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");
}
}
}