I have controls for movement defined as composite Binding through Vector 2D.
I have shown in settings any single binding which is not composite. I understood that I must get a composite index for binding, which is correct, I got the right binding like up, down, ...
But whenever I click on button for change something on Move, whole game freezes. And I can't do anything... Is there something I'm missing, when rebending part of composite?
Here is my code and screen, how the control settings looks.
public void Start()
{
Button.onClick.AddListener(() =>
{
Key.Text = "Listening";
_operation = Action.PerformInteractiveRebinding()
.WithTargetBinding(BindingIndex)
.Start();
_operation.OnApplyBinding((op, path) =>
{
Action.ApplyBindingOverride(BindingIndex, path);
Key.Text = Action.bindings[BindingIndex].ToDisplayString();
_operation.Dispose();
});
});
}

