static void ShowInputControlPicker(Rect rect, SerializedProperty pathProperty, TreeViewState pickerTreeViewState,
                                           Action <SerializedProperty> onPickCallback)
        {
            var w = new InputControlPicker(pathProperty, pickerTreeViewState)
            {
                onPickCallback = onPickCallback
            };

            w.width = rect.width;
            PopupWindow.Show(rect, w);
        }
Exemplo n.º 2
0
        void ShowInputControlPicker(Rect rect, SerializedProperty pathProperty)
        {
            var w = new InputControlPicker(pathProperty, ref m_TreeViewState)
            {
                onPickCallback = s =>
                {
                    m_ManualEditMode = false;
                    OnBindingModified(s);
                }
            };

            w.width = rect.width;
            PopupWindow.Show(rect, w);
        }
Exemplo n.º 3
0
 public PathTreeView(TreeViewState state, InputControlPicker parent)
     : base(state)
 {
     m_Parent = parent;
     Reload();
 }