TryGetMatrix(int, out Matrix4x4)
Reads a matrix property that this pass has written.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
TryGetMatrix(int, Matrix4x4)
public bool TryGetMatrix(int nameID, out Matrix4x4 value)
Parameters
The property ID, from Shader.PropertyToID.
The value that the shader reads, or zero when the method returns false.
Returns
Type | Description |
|---|---|
| bool | True if this pass has written the property as a matrix. |
Remarks
Unlike FilterParameterWriter.GetOrAddMatrixRef, this method doesn't add the property. It doesn't read the value of the material.