public void OnStkInitialized(SoundToolKitManager soundToolKitManager) { if (!Initialized) { m_soundPathsCache = new SoundPathsCache(soundToolKitManager.StkAudioEngine); IntializeSegmentsLineRenderer(); #if !UNITY_EDITOR UpdateSoundPathDrawer(); #else m_soundPathsCache.CachingEnabled = UpdateSoundPaths; #endif } }
public void OnStkInitialized(SoundToolKitManager soundToolKitManager) { if (!Initialized) { SoundToolKitDebug.Assert(soundToolKitManager.StkAudioEngine != null, "AudioEngine is null"); m_editorExtensions = new EditorExtensions(soundToolKitManager.StkAudioEngine); m_resourcesContainer = soundToolKitManager.ResourceContainer; m_resourcesContainer.OnMeshesChanged += RedrawAcoustic; #if !UNITY_EDITOR UpdateMeshDrawer(); #endif } }
public void OnStkInitialized(SoundToolKitManager soundToolKitManager) { if (!Initialized) { // Samples from inspector LoadSamples(m_soundToolKitSamplesReadOnly); // Samples from method Load LoadSamples(m_soundToolKitSamples); // No further need for storing those samples here m_soundToolKitSamples.Clear(); Initialized = true; } }