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

Question Custom Pass - Changing Values at Runtime via Another script

Discussion in 'General Graphics' started by cadin6, Jun 5, 2023.

  1. cadin6

    cadin6

    Joined:
    Apr 9, 2019
    Posts:
    2
    How do you get variables of a Custom Pass script from another C# Monobehaviour script and edit them there? I want to have a function or event that will be called at a specific point to change a float property in the custom pass from a manager monobehaviour c# script.
    I can't instance it as a class and reach it's values. How do I go about doing this?