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

            ProjectWindowUtil.ShowCreatedAsset(o);
        }