Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question how to access graphics compositor from script

Discussion in 'General Graphics' started by pholz, Aug 3, 2023.

  1. pholz

    pholz

    Joined:
    Feb 27, 2014
    Posts:
    5
    I am trying to use the graphics compositor window to combine different layers of cameras and video footage. I want a behaviour script to change the composition parameters. How can I access this from a script?
     
  2. pholz

    pholz

    Joined:
    Feb 27, 2014
    Posts:
    5
    In case anyone is wondering, I could not find a solution and used a Custom Pass Volume with fullscreen shader graph and render texture instead.
     
  3. McDev02

    McDev02

    Joined:
    Nov 22, 2010
    Posts:
    661
    I have the same issue and would like how to access at least custom Composition Parameters.
    CompositionProfile is available in the project but it is an internal class so it can not be accessed by a script. Edit: This is also true for the CompositionManager Script that is a hidden object in the scene. I was wondering were all of this was stored...

    This feature is a good start but definietly needs some work. E.g. letting us adjust the resolution factor per layer which is easy with custom render textures. I hope that this compositor feature is still in development.
     
    Last edited: Aug 10, 2023