Beispiel #1
0
        public static void Unload(InAudioBankLink bankLink)
        {
            InAudioBank bank = bankLink.LoadedBank;

            if (bank != null)
            {
                for (int i = 0; i < bank.Clips.Count; i++)
                {
                    var node = bank.Clips[i].Node;
                    if (node != null)
                    {
                        var audioData = node.NodeData as InAudioData;
                        if (audioData != null)
                        {
                            audioData.Clip = null;
                        }
                    }
                }
                Resources.UnloadUnusedAssets();
                bankLink.IsLoaded = false;
            }
        }
Beispiel #2
0
 public void BankIsLoaded(InAudioBank bank)
 {
     LoadedBanks.Add(bank);
 }