Search Unity

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

    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.