GetGlobalMatrix
Gets a global matrix property for all shaders previously set using Shader.SetGlobalMatrix.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
GetGlobalMatrix(string)
Gets a global matrix property for all shaders previously set using Shader.SetGlobalMatrix.
public static Matrix4x4 GetGlobalMatrix(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| Matrix4x4 |
GetGlobalMatrix(int)
Gets a global matrix property for all shaders previously set using Shader.SetGlobalMatrix.
public static Matrix4x4 GetGlobalMatrix(int nameID)
Parameters
The name ID of the property retrieved by Shader.PropertyToID.
Returns
Type | Description |
|---|---|
| Matrix4x4 |