GetNodeStates(List<XRNodeState>)
Describes all currently connected XRNodes and provides available tracking states for each.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
public static void GetNodeStates(List<XRNodeState> nodeStates)
Parameters
A list that is populated with XRNodeState objects.
Remarks
Use this method to acquire all the currently available XR input Nodes, as an alternative to handling the node events InputTracking.nodeAdded and InputTracking.nodeRemoved. The contents of list will be cleared and replaced with fresh data.
nodeStatesNot all XR platforms provide complete tracking data. Use the methods XRNodeState.TryGetPosition, XRNodeState.TryGetRotation, etc. to read the data if it's available.