コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: HouraiEditor.cs プロジェクト: wugols2004/DanmakU
 static void CreateStageData()
 {
     AssetUtil.CreateAssetInProjectWindow <BGMGroup>();
 }