Transform.worldToLocalMatrix

Switch to Manual
public Matrix4x4 worldToLocalMatrix ;

Description

将点从世界空间转换到本地空间的矩阵(只读)。

If you're not familiar with using matrices for coordinate transformations, use Transform.InverseTransformPoint instead.

IMPORTANT: If you're setting shader parameters you MUST use Renderer.worldToLocalMatrix instead.