private static GetButtonContent ( UnityEditor.Audio.AudioMixerController controller ) : |
||
controller | UnityEditor.Audio.AudioMixerController | |
Résultat |
internal static void Popup(AudioMixerController controller, GUIStyle style, params GUILayoutOption[] options) { GUIContent buttonContent = AudioMixerExposedParametersPopup.GetButtonContent(controller); Rect rect = GUILayoutUtility.GetRect(buttonContent, style, options); if (EditorGUI.DropdownButton(rect, buttonContent, FocusType.Passive, style)) { PopupWindow.Show(rect, new AudioMixerExposedParametersPopup(controller), null, ShowMode.PopupMenuWithKeyboardFocus); } }
internal static void Popup(AudioMixerController controller, GUIStyle style, params GUILayoutOption[] options) { GUIContent buttonContent = AudioMixerExposedParametersPopup.GetButtonContent(controller); Rect rect = GUILayoutUtility.GetRect(buttonContent, style, options); if (!EditorGUI.ButtonMouseDown(rect, buttonContent, FocusType.Passive, style)) { return; } PopupWindow.Show(rect, (PopupWindowContent) new AudioMixerExposedParametersPopup(controller)); }