Skip to content

Format

typescript
Transform.localToWorldMatrix

class: Transform

Description

(Read Only) The matrix that transforms a point from local space to world space.

Do not use this matrix to set shader parameters or perform rendering-related calculations.

Parameters

param_nametypedescription

Return

typedescription
Matrix4x4The transformation matrix.

Code Example

typescript
OnStart(): void {
    let matrix = this.transform.localToWorldMatrix;
    Debug.Log(matrix);
    }