Search Unity

World Space Cursor for World Space Canvas and Oculus Rift?

Discussion in 'UGUI & TextMesh Pro' started by quitebuttery, Aug 20, 2014.

  1. quitebuttery

    quitebuttery

    Joined:
    Mar 12, 2011
    Posts:
    329
    So is there a way to make a world space cursor that you can control the position of so you can use Oculus Rift with World Space canvases?

    Is there an API to basically feed the cursor position to the UI system manually? I have a cursor object that follows the center of the the camera and I need to have that be the cursor position for World Space canvases.
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,660
    I think you'll need to derive your own class from UnityEngine.EventSystems.EventSystemModule. Then you can implement whatever raycasting behaviour you need.
     
  3. quitebuttery

    quitebuttery

    Joined:
    Mar 12, 2011
    Posts:
    329
    superpig likes this.