Class PostProcessEffectSettings
The base class for all post-processing effect settings. Any Parameter
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 |
---|---|
Get |
Returns the computed hash code for this parameter. |
Is |
Returns |
Set |
Sets all the overrides for this effect to a given value. |