I’m having an issue with the new input system where gameobjects with the OnScreenStick and OnScreenButton scripts attached can’t be clicked or used after calling:
_playerInput.SwitchCurrentActionMap(“Player”);
Weirdly, even if I create a copy of the “UI” action map and change to that the same problem occurs, it only seems to want to work with the action map named “UI”. If I don’t change the action map the controls respond as expected. I’ve also tried creating a plain UI button and it has the same behaviour.
I am fairly new to Unity so it could well be something obvious that I am missing. If anyone has any ideas they would be most appreciated.
Still having this issue so tried to update to the new 1.1-pre.6 version today, but this has made things worse! Now getting lots of errors like this:
InvalidOperationException: Already have an event buffer set! Was OnUpdate() called recursively?
UnityEngine.InputSystem.InputManager.OnUpdate (UnityEngine.InputSystem.LowLevel.InputUpdateType updateType, UnityEngine.InputSystem.LowLevel.InputEventBuffer& eventBuffer) (at Library/PackageCache/com.unity.inputsystem@1.1.0-pre.6/InputSystem/InputManager.cs:3331)
UnityEngine.InputSystem.LowLevel.NativeInputRuntime+<>c__DisplayClass7_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* eventBufferPtr) (at Library/PackageCache/com.unity.inputsystem@1.1.0-pre.6/InputSystem/NativeInputRuntime.cs:62)
UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)
… and …
InvalidOperationException during event processing of Editor update; resetting event buffer
UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)
If I switch back to 1.1-pre.5 the messages stop. Anyone else having this problem?