TransformExt.GetLocalRotation Method

Gets the given rotation in transform local coordinates. If transform is null, rotation will be returned.

Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Quaternion GetLocalRotation(
	Transform transform,
	Quaternion rotation
)

Parameters

 

transform
Type: Transform
Transform to get the local coordinates in
rotation
Type: Quaternion
Rotation

Return Value

Type: Quaternion
Rotation in local space or rotation if transform is null

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace