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.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Custom Pass - Changing Values at Runtime via Another script

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

  1. cansuaydin

    cansuaydin

    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?