AltTester-Unity-SDK icon indicating copy to clipboard operation
AltTester-Unity-SDK copied to clipboard

[WebGL] Error in game using NIS when using the input actions in Desktop with `Click objects` in Recorder

Open iulianatodoran opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. Connect the launched roll-a-ball instrumented WebGL build with AltTester Desktop
  2. Start a recording with Click objects selected
  3. Using Click/Press or Tap/Swipe click on some objects in the Screenshot Area
  4. Check the game console for errors

Actual result

AR

After step 3 in the game console there is an error:

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
  at UnityEngine.Input.get_mousePosition_Injected (UnityEngine.Vector3& ret) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.Input.get_mousePosition () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.BaseInput.get_mousePosition () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.UpdateModule () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.EventSystem.TickModules () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <00000000000000000000000000000000>:0 

Additional info

Environment

  • roll-a-ball WebGL game build instrumented with AltTester Unity SDK from development branch (15.01.24)
  • Unity version for instrumenting builds: 2022.3.17f1
  • browser for launching the game: Chrome
  • AltTester Desktop from development branch (12.01.24 - commit ff1bc0e)

Screenshots image

Notes

  • issue found while testing https://github.com/alttester/AltTester-Unity-SDK/issues/1429

Expected result

ER

After step 3 there should be no error in the game console

Additional info

Testability

iulianatodoran avatar Jan 15 '24 14:01 iulianatodoran