Example #1
0
        private void RebuildActionTree()
        {
            var selectedActionMapItem =
                m_ActionMapsTree.GetSelectedItems().OfType <ActionMapTreeItem>().FirstOrDefault();

            if (selectedActionMapItem == null)
            {
                // Nothing selected. Wipe middle and right pane.
                m_ActionsTree.onBuildTree = null;
            }
            else
            {
                m_ActionsTree.onBuildTree = () =>
                                            InputActionTreeView.BuildWithJustActionsAndBindingsFromMap(selectedActionMapItem.property);
            }

            // Rebuild tree.
            m_ActionsTree.Reload();
        }
 protected override TreeViewItem BuildTree(SerializedProperty property)
 {
     return(InputActionTreeView.BuildWithJustActionsAndBindingsFromMap(property));
 }