Exemple #1
0
        public void OnBeforeSerialize()
        {
#if UNITY_EDITOR
            string wwisePlatform = GetWwisePlatformNameFromBuildTarget(EditorUserBuildSettings.activeBuildTarget);
            if (m_dataPerPlatformList != null)
            {
                foreach (var entry in m_dataPerPlatformList)
                {
                    entry.LocalizedBankKeys             = entry.LocalizedBanks.Keys.ToArray();
                    entry.LocalizedBanksValues          = entry.LocalizedBanks.Values.ToArray();
                    entry.LocalizedStreamingMediaKeys   = entry.LocalizedStreamingMedia.Keys.ToArray();
                    entry.LocalizedStreamingMediaValues = new LocalizedStreamingMediaList();
                    entry.LocalizedStreamingMediaValues.Add(entry.LocalizedStreamingMedia.Values.ToList());

                    if (entry.WwisePlatform == wwisePlatform)
                    {
                        CurrentPlatformAssets = entry;
                    }
                }
            }
#endif
            loadState = BankLoadState.Unloaded;
        }
        public void OnBeforeSerialize()
        {
#if UNITY_EDITOR
            string wwisePlatform = AkBasePathGetter.GetPlatformName();
            if (m_dataPerPlatformList != null)
            {
                foreach (var entry in m_dataPerPlatformList)
                {
                    entry.LocalizedBankKeys             = entry.LocalizedBanks.Keys.ToArray();
                    entry.LocalizedBanksValues          = entry.LocalizedBanks.Values.ToArray();
                    entry.LocalizedStreamingMediaKeys   = entry.LocalizedStreamingMedia.Keys.ToArray();
                    entry.LocalizedStreamingMediaValues = new LocalizedStreamingMediaList();
                    entry.LocalizedStreamingMediaValues.Add(entry.LocalizedStreamingMedia.Values.ToList());

                    if (entry.WwisePlatform == wwisePlatform)
                    {
                        CurrentPlatformAssets = entry;
                    }
                }
            }
#endif
            loadState = BankLoadState.Unloaded;
        }