GetGlobalMatrix
Gets a global matrix property for all shaders previously set using Shader.SetGlobalMatrix.
Read time 1 minuteLast updated 4 days ago
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 |