Search Unity

Color Gradient Binder

Discussion in 'Visual Effect Graph' started by Korahan, Jun 11, 2021.

  1. Korahan

    Korahan

    Joined:
    May 12, 2017
    Posts:
    14
    Hi!

    Is there a way to bind the exposed property of a color gradient to the one of a custom script?

    I know, there are almost no use-cases but I have put a lot of work into a system that gives every randomly generated scene its own color scheme for level and UI. Now I am done with the VFX but I would love if I could change their color on runtime just as well as the rest of the game. atm, they look slightly off.

    Thanks in advance!
     
  2. Korahan

    Korahan

    Joined:
    May 12, 2017
    Posts:
    14
    Sorry, I was thinking too complicated. I can just alter the gradient per script every time the scene changes. I don't need to bind it and I need more sleep.