Search Unity

branch to switch gradients

Discussion in 'Visual Effect Graph' started by pjbaron, Jun 12, 2020.

  1. pjbaron

    pjbaron

    Joined:
    Jan 12, 2017
    Posts:
    53
    upload_2020-6-12_10-52-36.png
    Unity 2019.3.13f1
    VFX Graph 7.3.1


    This doesn't work (the gradient doesn't switch when I change the GradientSwitch boolean from my script).
    Can anyone tell me why?
    My best guesses:
    - the gradient is read-once at the start and can't be changed later
    - the branch isn't working properly with gradients
    - the Output group can't be switched dynamically

    (I tried to add tags to this post but it says I cannot create 'new tags': "vfx graph", "branch", "gradient")
     
    Last edited: Jun 12, 2020
  2. pjbaron

    pjbaron

    Joined:
    Jan 12, 2017
    Posts:
    53
    Hmm... or is it actually working but 'add color random from gradient' is so subtle that no-one can see the difference?