Material.GetMatrix 获取矩阵

function GetMatrix (propertyName : string) : Matrix4x4


Get a named matrix value from the shader.


This is mostly used with custom shaders that need extra matrix parameters. Matrix parameters are not exposed in the material inspector, but can be set and queried with SetMatrix and GetMatrix from scripts.

这主要是与需要额外的矩阵参数的自定义着色器一起使用的。矩阵参数不会将其公开在材质的检视面板中,但可以在脚本中通过SetMatrix 和 GetMatrix设置和查询。

参见: SetMatrix , Materials

Page last updated: 2011-1-22