Class PropertySheet
The post-processing stack is entirely built around the use of CommandBuffer and as such requires the use of MaterialPropertyBlock to properly deal with the deferred nature of CommandBuffer. This wrapper abstracts the creation and destruction of MaterialPropertyBlock and Material to make the process easier.
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
public sealed class PropertySheet
Properties
properties
The actual MaterialPropertyBlock to fill.
Declaration
public MaterialPropertyBlock properties { get; }
Property Value
Type | Description |
---|---|
MaterialPropertyBlock |
Methods
ClearKeywords()
Clears all keywords set on the source material.
Declaration
public void ClearKeywords()
DisableKeyword(String)
Disables a given keyword on the source material.
Declaration
public void DisableKeyword(string keyword)
Parameters
Type | Name | Description |
---|---|---|
String | keyword | The keyword to disable |
EnableKeyword(String)
Enableds a given keyword on the source material.
Declaration
public void EnableKeyword(string keyword)
Parameters
Type | Name | Description |
---|---|---|
String | keyword | The keyword to enable |