Search Unity

Find PostProcessing Volume in use

Discussion in 'Scripting' started by WILEz1975, Feb 13, 2019.

  1. WILEz1975

    WILEz1975

    Joined:
    Mar 23, 2013
    Posts:
    300
    Hi, i need to find the PostProcessing Volume in use to disable it at a certain time (opening a menu).
    That is,I have many volumes and I would like to know when my camera is inside a specifc volume and this is doing "his job" on my camera.

    like:

    PostProcessVolume volumePostEffectInUse;

    void OnMenuOpening(){

    volumePostEffectInUse=GetTheVolumeInUse();

    volumePostEffectInUse.enabled=false;
    }

    What I put in the function GetTheVolumeInUse()?

    There is a function that takes the volume without the need to write special code to find trigger collider etc..?
     
    Last edited: Feb 13, 2019