TryGetMatrix(int, out Matrix4x4)
Reads a matrix property that this pass has written.
阅读时间1 分钟最后更新于 1 天前
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.