Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Cursor disappears when I use a Canvas with buttons

Discussion in 'VR' started by Almypal, Jun 30, 2017.

  1. Almypal

    Almypal

    Joined:
    Jun 29, 2017
    Posts:
    20
    Hello All,

    I have done some searching and found similar topics without a solution. Does anyone know a fix to allow the cursor to display on a canvas. My gaze is selecting the buttons but, its kind of a guessing game.

    edit: This is for the hololens

    Thank you
     
    Last edited: Jun 30, 2017
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    I think the HoloTool kit has something for that at least a pre built cursor option. Are you trying to build a cursor with a canvas?
     
  3. Almypal

    Almypal

    Joined:
    Jun 29, 2017
    Posts:
    20
    yes, i am using the holole tool kit cursor. I am building a UI (buttons on a canvas).
     
  4. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    I'm not sure what to do about displaying a cursor from the HoloToolkit in the UI, but what button you're gazing at shouldn't need to be a guessing game - even without a cursor. You can prescribe different colors, transforms, and such for each button such that it's obvious which button/etc. is being gazed at. See https://unity3d.com/learn/tutorials/topics/user-interface-ui/ui-transitions