void OnAddCompositeBinding(object dimensionNumber) { var actionMapLine = GetSelectedActionMapLine(); var actionLine = GetSelectedActionLine(); InputActionSerializationHelpers.AppendCompositeBinding(actionLine.elementProperty, actionMapLine.elementProperty, (int)dimensionNumber); Apply(); }
void OnAddCompositeBinding(object paramList) { var compositeName = (string)((List <object>)paramList)[0]; var property = (SerializedProperty)((List <object>)paramList)[1]; var compositeType = InputBindingComposite.s_Composites.LookupTypeRegistration(compositeName); InputActionSerializationHelpers.AppendCompositeBinding(property, null, compositeName, compositeType); property.serializedObject.ApplyModifiedProperties(); m_TreeView.Reload(); }
void OnAddCompositeBinding(object paramList) { if (!CanAddBinding()) { return; } var compositeName = (string)((List <object>)paramList)[0]; var mapProperty = (SerializedProperty)((List <object>)paramList)[1]; var action = m_TreeView.GetSelectedAction(); var compositeType = InputBindingComposite.s_Composites.LookupTypeRegistration(compositeName); InputActionSerializationHelpers.AppendCompositeBinding(action.elementProperty, mapProperty, compositeName, compositeType); mapProperty.serializedObject.ApplyModifiedProperties(); m_TreeView.Reload(); }
public void AppendCompositeBinding(string compositeName) { var compositeType = InputBindingComposite.s_Composites.LookupTypeRegistration(compositeName); InputActionSerializationHelpers.AppendCompositeBinding(elementProperty, m_ActionMapProperty, compositeType); }