Format
typescript
Transform.worldToLocalMatrixclass: Transform
Description
(Read Only) The matrix that transforms points from world space to local 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.worldToLocalMatrix;
Debug.Log(matrix);
}