Search Unity

  1. How can our website serve you better? Give us your feedback. Take our survey and let us know.
    Dismiss Notice

Unity UI Replacing mouse with a Game Pad Cursor

Discussion in 'UGUI & TextMesh Pro' started by FoxCastz, May 26, 2018.

  1. FoxCastz

    FoxCastz

    Joined:
    Jun 18, 2015
    Posts:
    75
    Hello everyone, I am attempting to add controller support to my existing game, but after much searching I am not seeing an effective way to replace the mouse with an image of a mouse controlled via the game pad(xbox controller). I cannot change the mouse position directly or simulate a mouse click on UI buttons using the game pad. I can however control a Raw Image of a Cursor using the game pads joystick to pretend it is controlling a mouse which I can then use to screen raycast things in the gameworld with, but I cannot interact with UI elements using this method. Can anyone help?
     
  2. FoxCastz

    FoxCastz

    Joined:
    Jun 18, 2015
    Posts:
    75
unityunity