Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

using UnityEngine.Rendering.PostProcessing;

is the namespace:

    public PostProcessVolume postProcessVolume;   
  private Vignette vignette;

is the volume


if (!postProcessVolume.profile.TryGetSettings(out vignette))

        {

            Debug.LogError("Vignette is not found in the Post-Process Volume!");

            this.enabled = false;

            return;

        }

gets the vignette settings

then vignette.intensity.value controls it