Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetRotation(out Quaternion)

Attempt to retrieve a quaternion representing the current rotation of the tracked node.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule

TryGetRotation(Quaternion)

public bool TryGetRotation(out Quaternion rotation)

Parameters

rotation

Returns

Type

Description

boolTrue 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.