Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. 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

XR.XRNodeState.Try Functions Missing Parameters in Documentation

Discussion in 'Documentation' started by Optrix, Jun 29, 2019.

  1. Optrix

    Optrix

    Joined:
    May 30, 2017
    Posts:
    17
    The XRNodeState class for input tracking appears to have an issue in the documentation - commands to get the position, rotation, velocity etc. have changed in 2019.1, but the documentation doesn't mention the parameters the calls take.

    https://docs.unity3d.com/ScriptReference/XR.XRNodeState.TryGetPosition.html

    All of their definitions should include a parameter that is the returned vector or quaternion, and all should return bool rather than void.

    IE. bool TryGetPosition(out Vector3) rather than void TryGetPosition()
     
  2. mdurand

    mdurand

    Unity Technologies

    Joined:
    Aug 1, 2016
    Posts:
    45
    Thanks for bringing this to our attention. I've made a fix and it will propagate to our various versions of Unity over the coming weeks.
     
unityunity