Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

branch to switch gradients

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

  1. pjbaron

    pjbaron

    Joined:
    Jan 12, 2017
    Posts:
    38
    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:
    38
    Hmm... or is it actually working but 'add color random from gradient' is so subtle that no-one can see the difference?
     
unityunity