static void CreateCustomRuleTile() { if (String.IsNullOrEmpty(tempCustomRuleTilePath) || !File.Exists(tempCustomRuleTilePath)) { tempCustomRuleTilePath = FileUtil.GetUniqueTempPathInProject(); } File.WriteAllText(tempCustomRuleTilePath, customRuleTileScript); ProjectWindowUtil.CreateScriptAssetFromTemplateFile(tempCustomRuleTilePath, "NewCustomRuleTile.cs"); }
static void CreateCustomRuleTile() { ProjectWindowUtil.CreateScriptAssetFromTemplateFile("Packages/com.unity.2d.tilemap.extras/Editor/Tiles/RuleTile/ScriptTemplates/NewCustomRuleTile.cs.txt", "NewCustomRuleTile.cs"); }