public static void CreateLuaFile(MenuCommand menuCommand) { CodeTemplates.CreateFromTemplate( "Lua Script.lua", @"Assets/Templates/LuaTemplate.lua"); }
public override void Action(int instanceId, string pathName, string resourceFile) { Object o = CodeTemplates.CreateScript(pathName, resourceFile); ProjectWindowUtil.ShowCreatedAsset(o); }