TransformExt.GetWorldPosition Method

Transforms a position to world space coordinates. If transform is null, localPosition will be returned.

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

Syntax

C#

public static Vector3 GetWorldPosition(
	Transform transform,
	Vector3 localPosition
)

Parameters

 

transform
Type: Transform
Transform with the space of the local coordinates
localPosition
Type: Vector3
Position in local coordinates

Return Value

Type: Vector3
Coordinates in world space or localPosition if transform is null

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace