⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    PostProcessLayerFix MonoBehaviour

    Overview

    The PostProcessLayerFix behaviour adds the PostProcessLayer component to any cameras on start at runtime.

    The Unity Post Processing Stack V2 has a number of bugs relating to how it serializes and deserializes references its shared resources. This makes it very difficult to use in an asset because on first import it can lead to bugs ranging from post-processing effects not being applied, to errors being spammed to the console. The fixes for this involve manually editing every camera object, and so this behaviour was added in an attempt to shift the requirement for this away from the end user.

    Inspector

    PostProcessLayerFix

    Properties

    The PostProcessLayerFix behaviour has no properties exposed in the inspector.

    Controls

    The Add Post-Processing Layer button will add a post-processing layer component to the current object and then remove this behaviour. This is the same process it performs on start at runtime and can simplify your project if you know you are going to be using the built-in render pipeline.


    See Also

    Post Processing Stack V2

    PostProcessLayerSettings

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX