Hello everyone,
I’m trying to switch the actionmap in my game to go from “Player” pattern of input to “UI” one , but no matter what i’ve done my computer freeze and i only can shutdown Unity.
Problem solved, the input system called the event multiple times in a frame, that’s lead to some impredictable behaviour in the function. I have pass through with a boolean that restrict to only one pass, but it’s quite dirty. When I find a better solution, i will write down here.
Making a second input action asset. no additional code needed. Changing Action Maps with Unity's "New" Input System — One Wheel Studio - 2 input assets, one for the Player and one for Ui, each with their own action maps. So in essence you can switch action maps on each as needed with the manager but having 2 input assets means that Ui messages are broadcast all the time, which eliminates most of the problems