public override void OnInspectorGUI() { EditorGUILayout.Space(); ////TODO: line up "Binding" so it conforms to width of property names used in other inspectors InputBindingPropertiesView.DrawBindingGUI(m_ControlPathProperty, ref m_ManualPathEditMode, m_ControlPickerTreeViewState, s => { m_ManualPathEditMode = false; }); EditorGUILayout.Space(); }
public void OnEnable() { m_ControlPathProperty = serializedObject.FindProperty("m_ControlPath"); if (m_ControlPickerTreeViewState == null) { m_ControlPickerTreeViewState = new TreeViewState(); } m_PropertyView = new InputBindingPropertiesView(m_ControlPathProperty, null, m_ControlPickerTreeViewState, null); }