void InitTreeIfNeeded(SerializedProperty property) { if (m_TreeView == null) { m_TreeView = InputActionComponentListTreeView.CreateFromActionProperty(() => {}, property); m_TreeView.OnContextClick = OnContextClick; } }
public static InputActionListTreeView CreateFromActionMapProperty(Action applyAction, SerializedProperty actionMapProperty) { var treeView = new InputActionComponentListTreeView(applyAction, new TreeViewState()); treeView.m_ActionMapSerializedProperty = actionMapProperty; treeView.Reload(); treeView.ExpandAll(); return(treeView); }
protected override InputActionListTreeView CreateTree(SerializedProperty property) { return(InputActionComponentListTreeView.CreateFromActionMapProperty(() => {}, property)); }