Method Get
Get(string)
Gets a PropertySheet for a given shader identifier. Sheets are recycled so you can safely call this method on every frame.
Declaration
[Obsolete("Use PropertySheet.Get(Shader) with a direct reference to the Shader instead.")]
public PropertySheet Get(string shaderName)
Parameters
Type | Name | Description |
---|---|---|
string | shaderName | The name of the shader to retrieve a sheet for |
Returns
Type | Description |
---|---|
PropertySheet | A sheet for the given shader |
Remarks
This method will not work when loading post-processing from an asset bundle. For this reason it is recommended to use Get(Shader) instead.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the shader is invalid |
Get(Shader)
Gets a PropertySheet for a given shader instance. Sheets are recycled so you can safely call this method on every frame.
Declaration
public PropertySheet Get(Shader shader)
Parameters
Type | Name | Description |
---|---|---|
Shader | shader | A shader instance to retrieve a sheet for |
Returns
Type | Description |
---|---|
PropertySheet | A sheet for the given shader |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the shader is invalid |