Version: 2023.1

Renderer.localToWorldMatrix

切换到手册
public Matrix4x4 localToWorldMatrix ;

描述

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

Use this matrix for shader parameters and calculations related to rendering instead of Transform.localToWorldMatrix. The matrix from the Transform component does not take into account features such as static batching which modify a mesh's vertex coordinates.