CreateScriptAssetFromTemplate() static private method

static private CreateScriptAssetFromTemplate ( string pathName, string resourceFile ) : Object
pathName string
resourceFile string
return Object
Esempio n. 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();
        }
Esempio n. 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();
 }