Пример #1
0
            ///-----------------------------------------------------------------
            public static void OnWillCreateAsset(string path)
            {
                path = path.RemoveExtension(".meta");
                int index = path.LastIndexOf(Strings.Separator.FileExtension.C());

                if (index < 0)
                {
                    return;
                }

                var builder = new CodeBuilder();

                if (!Regex.Match(path, builder.SearchPattern).Success)
                {
                    return;
                }

                builder.AddFile(new FileData(path, string.Empty));

                builder.Init();
                builder.StartWork(true);
            }