Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  4. Read here for Unity's latest plans on OpenXR.
    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:
    45
    I think this was actually my fault.
     
    Last edited: Apr 17, 2021
  2. freso

    freso

    Joined:
    Mar 19, 2013
    Posts:
    45
    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. :(
     
unityunity