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