💨
Gas Mask System - Doc
  • Gas Mask System - Introduction
  • ⭐Getting Started
    • Quick Start
    • Detailed Setup
  • 📖Manager Defaults
    • GMController
    • UI Manager
    • Health Manager
    • Audio Manager
    • Input Manager
  • ❓Support
    • Frequently Asked Questions
    • UI Text Missing
    • Where are inputs located?
    • Post Processing Errors?
    • FPSController Editing
    • PostProcessing Editing
    • Audio ScriptableObjects
    • System Namespace
  • 🌀Development
    • Patch Notes - V1.5
    • Roadmap
  • 📧Contacts
    • Contact Me
    • My Other Assets
Powered by GitBook
On this page
  1. Support

PostProcessing Editing

GMUIManager - Use ONE post process rather than two?

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.

 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.

        [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);
        }
PreviousFPSController EditingNextAudio ScriptableObjects

Last updated 1 year ago

❓