public InputBindingPropertiesView(SerializedProperty bindingProperty, Action reloadTree, TreeViewState controlPickerTreeViewState) { m_ControlPickerTreeViewState = controlPickerTreeViewState; m_BindingProperty = bindingProperty; m_ReloadTree = reloadTree; m_InteractionsProperty = bindingProperty.FindPropertyRelative("interactions"); m_ProcessorsProperty = bindingProperty.FindPropertyRelative("processors"); m_InteractionsReorderableReorderableList = new InteractionsReorderableReorderableList(bindingProperty.FindPropertyRelative("interactions"), ApplyModifiers); m_ProcessorsReorderableReorderableListView = new ProcessorsReorderableReorderableList(bindingProperty.FindPropertyRelative("processors"), ApplyModifiers); }
public InputBindingPropertiesView(SerializedProperty bindingProperty, Action reloadTree, TreeViewState controlPickerTreeViewState, InputActionWindowToolbar toolbar) { m_ControlPickerTreeViewState = controlPickerTreeViewState; m_BindingProperty = bindingProperty; m_ReloadTree = reloadTree; m_InteractionsProperty = bindingProperty.FindPropertyRelative("m_Interactions"); m_ProcessorsProperty = bindingProperty.FindPropertyRelative("m_Processors"); m_GroupsProperty = bindingProperty.FindPropertyRelative("m_Groups"); m_InteractionsReorderableReorderableList = new InteractionsReorderableReorderableList(m_InteractionsProperty, ApplyModifiers); m_ProcessorsReorderableReorderableListView = new ProcessorsReorderableReorderableList(m_ProcessorsProperty, ApplyModifiers); m_Toolbar = toolbar; if (m_Toolbar != null) { m_ControlSchemes = toolbar.controlSchemes; } m_BingingGroups = m_GroupsProperty.stringValue.Split(InputBinding.kSeparator).ToList(); }
public InputBindingPropertiesView(SerializedProperty bindingProperty, Action <Change> onChange, InputControlPickerState controlPickerState, InputActionWindowToolbar toolbar, string expectedControlLayout = null) { m_ControlPickerState = controlPickerState; m_BindingProperty = bindingProperty; m_OnChange = onChange; m_InteractionsProperty = bindingProperty.FindPropertyRelative("m_Interactions"); m_ProcessorsProperty = bindingProperty.FindPropertyRelative("m_Processors"); m_GroupsProperty = bindingProperty.FindPropertyRelative("m_Groups"); m_PathProperty = bindingProperty.FindPropertyRelative("m_Path"); m_InteractionsList = new InteractionsReorderableReorderableList(m_InteractionsProperty, OnInteractionsModified); m_ProcessorsList = new ProcessorsReorderableReorderableList(m_ProcessorsProperty, OnProcessorsModified); m_Toolbar = toolbar; if (m_Toolbar != null) { m_ControlSchemes = toolbar.controlSchemes; } m_BindingGroups = m_GroupsProperty.stringValue.Split(InputBinding.kSeparator).ToList(); m_ExpectedControlLayout = expectedControlLayout; }