Format
typescript
Transform.localToWorldMatrixclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
Matrix4x4 | The transformation matrix. |
Code Example
typescript
OnStart(): void {
let matrix = this.transform.localToWorldMatrix;
Debug.Log(matrix);
}