Transform.worldToLocalMatrix

Switch to Manual
public Matrix4x4 worldToLocalMatrix;

Description

Matrix that transforms a point from world space into local space (Read Only).

You can also use Transform.InverseTransformPoint to transform coordinates instead of this matrix.

Do not use this matrix to set shader parameters or to perform calculations related to rendering. Use Renderer.worldToLocalMatrix instead.


Did you find this page useful? Please give it a rating: