Beispiel #1
0
        public static InAudioBank CreateAudioBank(int guid)
        {
            GameObject go   = new GameObject(guid.ToString());
            var        bank = go.AddComponent <InAudioBank>();

            bank.GUID = guid;


            PrefabUtility.CreatePrefab(FolderSettings.GetNewBankPath(guid), go);
            Object.DestroyImmediate(go);
            return(LoadAudioBank(guid));
        }
Beispiel #2
0
 private static Texture LoadTexture(string name)
 {
     return(AssetDatabase.LoadAssetAtPath(FolderSettings.GetIconPath(name), typeof(Texture2D)) as Texture2D);
 }