Hello,
I’m using keybinding on my game. After the complete of rebinding i’m using actionMap.SaveBindingOverridesAsJson() to save it. Here is how it looks like as a json block:
{\"bindings\":[{\"action\":\"Player\/ChangeCamera\",\"id\":\"e28011a3-83ff-425c-a8af-f8fbf792f9e1\",\"path\":\"<Keyboard>\/c\",\"interactions\":\"\",\"processors\":\"\"}]}
As you can see, interactions parts is empty but the key has “Press And Release” trigger behavior. Which is under the “Interactions” section.
After the load json with the method actionMap.LoadBindingOverridesFromJson(rebinds), my key’s trigger behavior changing to “Press Only”. Which is the first option of the trigger behavior. But i need to make it “Press And Release” after the load. How can i change it after the load or can i add the interaction properties to json while saving?