private void ShowParameterSlider() { if (m_sliderValue.Length == 0) { EditorGUILayout.LabelField("This event has no Parameter"); return; } for (int i = 0; i < m_sliderValue.Length; i++) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(m_fmodEVent.ParameterInfo[i].ParameterName); m_sliderValue[i] = EditorGUILayout.Slider(m_sliderValue[i], m_fmodEVent.ParameterInfo[i].MinIndex, m_fmodEVent.ParameterInfo[i].MaxIndex); EditorGUILayout.EndHorizontal(); m_fmodEVent.ChangeParameter(i, m_sliderValue[i]); EditorUtility.SetDirty(m_fmodEVent); } }