diff --git a/src/Luban.Job.Cfg/Source/Validators/PathValidator.cs b/src/Luban.Job.Cfg/Source/Validators/PathValidator.cs index 9f32c2f..cd5c971 100644 --- a/src/Luban.Job.Cfg/Source/Validators/PathValidator.cs +++ b/src/Luban.Job.Cfg/Source/Validators/PathValidator.cs @@ -64,6 +64,22 @@ namespace Luban.Job.Cfg.Validators } } + class UnityAddressablePattern : IPathPattern + { + public bool EmptyAble { get; set; } + + public string Mode => "unity"; + + public UnityAddressablePattern() + { + } + + public object CalcFinalPath(string path) + { + return path; + } + } + class Ue4ResourcePattern : IPathPattern { private readonly Regex _pat1; @@ -229,6 +245,15 @@ namespace Luban.Job.Cfg.Validators PathPattern = new RegexPattern(ss[1], ss[2]); break; } + case "unity": + { + if (ss.Length != 1) + { + ThrowCompileError(def, ""); + } + PathPattern = new UnityAddressablePattern(); + break; + } case "ue": { if (ss.Length != 1)