TransformExt.GetLocalPosition Method
Gets the given position in transform local coordinates. If transform is null, position will be returned.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3 GetLocalPosition(
Transform transform,
Vector3 position
)
Parameters
- transform
- Type: Transform
Transform to get the local coordinates in - position
- Type: Vector3
Position
Return Value
Type: Vector3
Coordinates in local space or position if transform is null