# PostProcessing Editing

### GMUIManager - Use ONE post process rather than two?

{% hint style="info" %}
As you can see below the "**GasMaskVisorUI**" method is setting the VisorImage, the EnableVignette and the State of either GasPostProcess or the original. \
\
You can comment out those lines if you didn't want to change the state and just use one post processing effect.
{% endhint %}

```csharp
 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.&#x20;

```csharp
        [SerializeField] private PostProcessVolume _postProcessingVolume = null;
        [SerializeField] private PostProcessProfile _originalProfile = null;
        [SerializeField] private PostProcessProfile _gasMaskProfile = null;
        private Vignette _vignette;
        private DepthOfField _dof;
        
        private void Awake()
        {c
            _gasMaskProfile.TryGetSettings(out _vignette);
            _gasMaskProfile.TryGetSettings(out _dof);
        }
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://speedtutoruk.gitbook.io/gas-mask-system-doc/support/postprocessing-editing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
