public InputControlPickerDropdown(AdvancedDropdownState state, Action <string> onPickCallback, Mode mode = Mode.PickControl)
     : base(state)
 {
     m_Gui            = new InputControlPickerGUI();
     minimumSize      = new Vector2(350, 250);
     maximumSize      = new Vector2(0, 300);
     m_OnPickCallback = onPickCallback;
     m_Mode           = mode;
 }
Exemplo n.º 2
0
 public InputControlPickerDropdown(AdvancedDropdownState state, SerializedProperty pathProperty, Action <SerializedProperty> onPickCallback)
     : base(state)
 {
     m_Gui            = new InputControlPickerGUI();
     minimumSize      = new Vector2(350, 250);
     maximumSize      = new Vector2(0, 300);
     m_PathProperty   = pathProperty;
     m_OnPickCallback = onPickCallback;
 }
Exemplo n.º 3
0
        public InputControlPickerDropdown(
            InputControlPickerState state,
            Action <string> onPickCallback,
            InputControlPicker.Mode mode = InputControlPicker.Mode.PickControl)
            : base(state.advancedDropdownState)
        {
            m_Gui = new InputControlPickerGUI(this);

            minimumSize = new Vector2(275, 300);
            maximumSize = new Vector2(0, 300);

            m_OnPickCallback = onPickCallback;
            m_Mode           = mode;
        }