Search Unity

Limiting the laser pointer to only interact with a specific layer?

Discussion in 'Daydream' started by Tuism, Mar 31, 2017.

  1. Tuism

    Tuism

    Joined:
    Oct 23, 2013
    Posts:
    28
    Hi there, I googled around and couldn't find an answer to how to get the laser pointer to only work with select layers - is that possible?

    Thanks in advance cool peeps :)
     
  2. Tuism

    Tuism

    Joined:
    Oct 23, 2013
    Posts:
    28
    Bump... Noone knows anything about this?
     
  3. dsternfeld

    dsternfeld

    Official Google Employee

    Joined:
    Jan 3, 2017
    Posts:
    72
    When using GvrPointerPhysicsRaycaster or GvrPointerGraphicRaycaster, you can specify the LayerMask used to filter events which is combined with the culling mask of the camera (it works just like GraphicRaycaster and PhysicsRaycaster).

    Thanks,

    Dan