Class PropertySheetFactory
A PropertySheet factory for easy creation and destruction of
Inheritance
System.Object
PropertySheetFactory
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
public sealed class PropertySheetFactory
Constructors
PropertySheetFactory()
Creates a new factory.
Declaration
public PropertySheetFactory()
Methods
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 |
---|---|
System.ArgumentException | Thrown if the shader is invalid |
Release()
Releases all resources used by this factory.
Declaration
public void Release()
Remarks
You don't need to call this method when using the builtin factory from PostProcessRenderContext.