Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved UI ray is always valid

Discussion in 'XR Interaction Toolkit and Input' started by freso, Apr 17, 2021.

  1. freso

    freso

    Joined:
    Mar 19, 2013
    Posts:
    73
    I think this was actually my fault.
     
    Last edited: Apr 17, 2021
  2. freso

    freso

    Joined:
    Mar 19, 2013
    Posts:
    73
    I finally figured out what the problem was. The XRRig camera was nog tagged MainCamera.

    I guess you actually use Camera.main somewhere related to UI, instead of XRRig.cameraGameObject. :(