public string GetDisplayString(Dictionary <AudioMixerEffectController, AudioMixerGroupController> effectMap) { AudioMixerGroupController audioMixerGroupController = effectMap[this]; if (audioMixerGroupController.GetInstanceID() != this.m_LastCachedGroupDisplayNameID || this.m_DisplayName == null) { this.m_DisplayName = audioMixerGroupController.GetDisplayString() + AudioMixerController.s_GroupEffectDisplaySeperator + AudioMixerController.FixNameForPopupMenu(this.effectName); this.m_LastCachedGroupDisplayNameID = audioMixerGroupController.GetInstanceID(); } return(this.m_DisplayName); }
public string GetDisplayString(Dictionary <AudioMixerEffectController, AudioMixerGroupController> effectMap) { AudioMixerGroupController group = effectMap[this]; if (group.GetInstanceID() != m_LastCachedGroupDisplayNameID || m_DisplayName == null) { // Cache display name to prevent string allocs every event m_DisplayName = group.GetDisplayString() + AudioMixerController.s_GroupEffectDisplaySeperator + AudioMixerController.FixNameForPopupMenu(effectName); m_LastCachedGroupDisplayNameID = group.GetInstanceID(); } return(m_DisplayName); }