How to Swap Action Maps

Objective:How to Swap Action Maps.

In the first step I will create Driving action map ,then I will select player action map and create new binding on Rotate Action called DrivingState.

Select DrivingState binding and set path option as T key on a keybord.

Now I create a performed event of Driving state ,then I will create a method to turn off Player Action Map then tunr on Driving action Map.

To test this I will create movement behavior for my driving like my previos article for 2D composite .Here a link https://medium.com/@suleimanabdullah/2d-vector-composite-w-new-unity-input-system-1b1cc0f3b1bf

Lets see the result.The first action map was rotation ,you can check one Vector1 composite how to implement that.

See you in the next one.

--

--

Suleiman Abdullah

Self taught Unity Developer, who is passion about making games ,and he loves Math For Game Development