namespace GFramework.Godot.extensions; public static class GodotPathExtensions { /// /// 判断是否是 Godot 用户数据路径(user://) /// public static bool IsUserPath(this string path) => !string.IsNullOrEmpty(path) && path.StartsWith("user://"); /// /// 判断是否是 Godot 资源路径(res://) /// public static bool IsResPath(this string path) => !string.IsNullOrEmpty(path) && path.StartsWith("res://"); /// /// 判断是否是 Godot 特殊路径(user:// 或 res://) /// public static bool IsGodotPath(this string path) => path.IsUserPath() || path.IsResPath(); }