PostProcessing Editing
GMUIManager - Use ONE post process rather than two?
public void GasMaskVisorUI(bool on)
{
visorImageOverlay.SetActive(on);
EnableVignette(on);
if (on)
{
SwapPostProcessingProfile(PostProcessState.GasPostProcess);
}
else
{
SwapPostProcessingProfile(PostProcessState.OriginalPostProcess);
}
}public void EnableVignette(bool on)
{
_vignette.active = on;
}Edit the Awake method below by changing the "gasMaskProfile" to "originalProfile" and you can use this instead to access the "_vignette" as per the EnableVignette method above.
Last updated