TryGetRotation(out Quaternion)
Attempt to retrieve a quaternion representing the current rotation of the tracked node.
読み終わるまでの所要時間 1 分最終更新 20日前
Definition
- Type: Method
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
TryGetRotation(Quaternion)
public bool TryGetRotation(out Quaternion rotation)
Parameters
A Quaternion that the method sets to the current rotation of the tracked node, or to Quaternion.identity if the rotation isn't available.
Returns
Type | Description |
|---|---|
| bool | True if the rotation was set in the output parameter. False if the rotation is not available due to limitations of the underlying platform or if the node is not presently tracked. |