private static void CreateBasicScript() { CodeTemplates.CreateFromTemplate( "BasicScript.cs", @"Assets/ProjectPref/Editor/CodeTemplates/Templates/BasicScript.txt"); }
public override void Action(int instanceId, string pathName, string resourceFile) { Object o = CodeTemplates.CreateScript(pathName, resourceFile); ProjectWindowUtil.ShowCreatedAsset(o); }