public static void GetNodeStates (List<XRNodeState> nodeStates);

Parámetros

nodeStatesA list that is populated with XRNodeState objects.

Descripción

Describes all currently connected XRNodes and provides available tracking states for each.

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 nodeStates list will be cleared and replaced with fresh data.
Not all XR platforms provide complete tracking data. Use the methods XRNodeState.TryGetPosition, XRNodeState.TryGetRotation, etc. to read the data if it's available.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961