private void OnItemDoubleClicked(ActionTreeItemBase item, SerializedProperty property) { var viewData = GetOrCreateViewData(property); // Double-clicking on binding or action item opens property popup. PropertiesViewBase propertyView = null; if (item is BindingTreeItem) { if (viewData.ControlPickerState == null) { viewData.ControlPickerState = new InputControlPickerState(); } propertyView = new InputBindingPropertiesView(item.property, controlPickerState: viewData.ControlPickerState, expectedControlLayout: item.expectedControlLayout, onChange: change => viewData.TreeView.Reload()); } else if (item is ActionTreeItem) { propertyView = new InputActionPropertiesView(item.property, onChange: change => viewData.TreeView.Reload()); } if (propertyView != null) { var rect = new Rect(GUIUtility.GUIToScreenPoint(Event.current.mousePosition), Vector2.zero); PropertiesViewPopup.Show(rect, propertyView); } }
public override bool AcceptsDrop(ActionTreeItemBase item) { return(false); }
public override bool AcceptsDrop(ActionTreeItemBase item) { return(item is PartOfCompositeBindingTreeItem); }
public abstract bool AcceptsDrop(ActionTreeItemBase item);