Search Unity

Question Input System and IMGUI

Discussion in 'Input System' started by ronald_ES, Jan 23, 2023.

  1. ronald_ES

    ronald_ES

    Joined:
    Sep 21, 2021
    Posts:
    5
    Currently have issues trying to get the touchscreen to register on a debugging menu that uses IMGUI on the Switch. They also use NGUI for the ingame menus which I expect I will have issues with as well. I've read somewhere that Input System is not compatible with IMGUI? Is this correct? If so, these systems in the game are quite large and would require a lot of work having to change them. So my question is are there any easy work arounds for this? Would it be possible to convert touches to a simulated mouse click? I was thinking of having a cursor to navigate the menus controlled by the joystick and then either simulate the mouseclick or somehow get the position of the OnGUI button. What would be the best solution here?
     
  2. rdjadu

    rdjadu

    Joined:
    May 9, 2022
    Posts:
    116
    Yes.

    Set "Active Input Handling" in player preferences to "Both".