public static UnityObject CreatePrefab(string folderPath, GameObject obj = null, ReplacePrefabOptions options = ReplacePrefabOptions.ConnectToPrefab) { //Create Folder if it doesn't already exist AssetUtil.CreateFolder(folderPath); folderPath = "Assets/" + folderPath; if (obj == null) { return(PrefabUtility.CreateEmptyPrefab(folderPath + "New Prefab.prefab")); } return(PrefabUtility.CreatePrefab(folderPath + "/" + obj.name + ".prefab", obj, options)); }
static void CreateStageData() { AssetUtil.CreateAssetInProjectWindow <BGMGroup>(); }