Class PostProcessEffectSettings
The base class for all post-processing effect settings. Any ParameterOverride members found in this class will be automatically handled and interpolated by the volume framework.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Assembly: solution.dll
Syntax
[Serializable]
public class PostProcessEffectSettings : ScriptableObject
Examples
[Serializable]
[PostProcess(typeof(ExampleRenderer), "Custom/ExampleEffect")]
public sealed class ExampleEffect : PostProcessEffectSettings
{
[Range(0f, 1f), Tooltip("Effect intensity.")]
public FloatParameter intensity = new FloatParameter { value = 0f };
public override bool IsEnabledAndSupported(PostProcessRenderContext context)
{
return enabled.value
&& intensity.value > 0f; // Only render the effect if intensity is greater than 0
}
}
Fields
Name | Description |
---|---|
active | The active state of the set of parameter defined in this class. |
enabled | The true state of the effect override in the stack. Setting this to |
Methods
Name | Description |
---|---|
GetHash() | Returns the computed hash code for this parameter. |
IsEnabledAndSupported(PostProcessRenderContext) | Returns |
SetAllOverridesTo(bool, bool) | Sets all the overrides for this effect to a given value. |