Class Vignette | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Vignette

    This class holds settings for the Vignette effect.

    Inheritance
    System.Object
    PostProcessEffectSettings
    Vignette
    Inherited Members
    PostProcessEffectSettings.active
    PostProcessEffectSettings.enabled
    PostProcessEffectSettings.SetAllOverridesTo(Boolean, Boolean)
    PostProcessEffectSettings.GetHash()
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    [Serializable]
    public sealed class Vignette : PostProcessEffectSettings

    Fields

    center

    Sets the vignette center point (screen center is [0.5,0.5]).

    Declaration
    public Vector2Parameter center
    Field Value
    Type Description
    Vector2Parameter

    color

    The color to use to tint the vignette.

    Declaration
    public ColorParameter color
    Field Value
    Type Description
    ColorParameter

    intensity

    The amount of vignetting on screen.

    Declaration
    public FloatParameter intensity
    Field Value
    Type Description
    FloatParameter

    mask

    A black and white mask to use as a vignette.

    Declaration
    public TextureParameter mask
    Field Value
    Type Description
    TextureParameter

    mode

    Use the "Classic" mode for parametric controls. Use the "Masked" mode to use your own texture mask.

    Declaration
    public VignetteModeParameter mode
    Field Value
    Type Description
    VignetteModeParameter

    opacity

    Mask opacity.

    Declaration
    public FloatParameter opacity
    Field Value
    Type Description
    FloatParameter

    rounded

    Should the vignette be perfectly round or be dependent on the current aspect ratio?

    Declaration
    public BoolParameter rounded
    Field Value
    Type Description
    BoolParameter

    roundness

    Lower values will make a square-ish vignette.

    Declaration
    public FloatParameter roundness
    Field Value
    Type Description
    FloatParameter

    smoothness

    The smoothness of the vignette borders.

    Declaration
    public FloatParameter smoothness
    Field Value
    Type Description
    FloatParameter

    Methods

    IsEnabledAndSupported(PostProcessRenderContext)

    Returns true if the effect is currently enabled and supported.

    Declaration
    public override bool IsEnabledAndSupported(PostProcessRenderContext context)
    Parameters
    Type Name Description
    PostProcessRenderContext context

    The current post-processing render context

    Returns
    Type Description
    System.Boolean

    true if the effect is currently enabled and supported

    Overrides
    PostProcessEffectSettings.IsEnabledAndSupported(PostProcessRenderContext)
    In This Article
    • Fields
      • center
      • color
      • intensity
      • mask
      • mode
      • opacity
      • rounded
      • roundness
      • smoothness
    • Methods
      • IsEnabledAndSupported(PostProcessRenderContext)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023