Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

VirtualMouseInput in World Space

Discussion in 'Input System' started by haywirephoenix, Jul 1, 2021.

  1. haywirephoenix

    haywirephoenix

    Joined:
    May 17, 2017
    Posts:
    100
    Currently having trouble getting VirtualMouseInput to support world space canvases while using the SoftwareCursor. The positioning of the virtual mouse and the canvas boundary is dependant on the camera position and field of view.

    Attempting to translate the cursor rectTransform position to screen space for the virtual mouse seems like the right approach but I had no success, would it be better to strip out the virtual mouse and send pointer events to the event system?
     
    Radivarig likes this.
  2. smonbrogg

    smonbrogg

    Joined:
    Dec 11, 2012
    Posts:
    17
    Radivarig and haywirephoenix like this.