Example #1
0
        public static void CreateSample()
        {
            var path = HelperFramework.GetPathLibrary();

            if (path == string.Empty)
            {
                path = PATH_TO_TEMPLATE;
            }
                        #if !ACTORS_COMPONENTS_STRUCTS
            else
            {
                path = string.Format($"{path}/Editor/Templates/TmpComponent.txt");
            }
Example #2
0
        public static void CreateSample()
        {
            var path = HelperFramework.GetPathLibrary();

            if (path == string.Empty)
            {
                path = PATH_TO_TEMPLATE;
            }
            else
            {
                path = string.Format($"{path}/Editor/Templates/TmpComponent.txt");
            }

            CreateFromTemplate("ComponentDefault.cs", path);
        }
Example #3
0
        public static void Generate()
        {
            var path = HelperFramework.GetPathLibrary();

            if (path == string.Empty)
            {
                path = PATH_TO_TEMPLATE;
            }
            else
            {
                path = string.Format($"{path}/Editor/Templates/TmpBlueprintTags.txt");
            }


            var o = CreateScript(string.Format($"{Application.dataPath}/Source/Runtime/Tags/bp.cs"), path);

            ProjectWindowUtil.ShowCreatedAsset((Object)o);
            AssetDatabase.Refresh();
        }