Пример #1
0
 public static void CreateLuaFile(MenuCommand menuCommand)
 {
     CodeTemplates.CreateFromTemplate(
         "Lua Script.lua",
         @"Assets/Templates/LuaTemplate.lua");
 }
Пример #2
0
        public override void Action(int instanceId, string pathName, string resourceFile)
        {
            Object o = CodeTemplates.CreateScript(pathName, resourceFile);

            ProjectWindowUtil.ShowCreatedAsset(o);
        }