コード例 #1
0
 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;
 }
コード例 #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;
 }
コード例 #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;
        }