CreateScriptAssetFromTemplate() static private method

static private CreateScriptAssetFromTemplate ( string pathName, string resourceFile ) : Object
pathName string
resourceFile string
return Object
示例#1
0
        private void CreateScript()
        {
            var basePath     = Path.Combine(EditorApplication.applicationContentsPath, kResourcesTemplatePath);
            var templatePath = Path.Combine(basePath, "81-C# Script-NewBehaviourScript.cs.txt");

            ProjectWindowUtil.CreateScriptAssetFromTemplate(TargetPath(), templatePath);
            AssetDatabase.Refresh();
        }
示例#2
0
        private void CreateScript()
        {
            string path         = Path.Combine(EditorApplication.applicationContentsPath, this.kResourcesTemplatePath);
            string resourceFile = Path.Combine(path, "81-C# Script-NewBehaviourScript.cs.txt");

            ProjectWindowUtil.CreateScriptAssetFromTemplate(this.TargetPath(), resourceFile);
            AssetDatabase.Refresh();
        }
 private void CreateScript()
 {
     ProjectWindowUtil.CreateScriptAssetFromTemplate(this.TargetPath(), this.templatePath);
     AssetDatabase.Refresh();
 }