TransformExt.GetLocalDirection Method

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

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

Syntax

C#

public static Vector3 GetLocalDirection(
	Transform transform,
	Vector3 direction
)

Parameters

 

transform
Type: Transform
Transform to get the local coordinates in
direction
Type: Vector3
Direction

Return Value

Type: Vector3
Direction in local space or direction if transform is null

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace