Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Find PostProcessing Volume in use

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

  1. WILEz1975

    WILEz1975

    Joined:
    Mar 23, 2013
    Posts:
    374
    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