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

Is it possible to animation gradation parameter at timeline?

Discussion in 'Visual Effect Graph' started by kkrg001, Apr 26, 2020.

  1. kkrg001

    kkrg001

    Joined:
    Mar 6, 2019
    Posts:
    35
    I tried to animate the gradation parameter in Timeline,
    (For example, gradually change from rainbow gradation to black and white blinking)

    It seems that gradation parameter does not support Add key.
    Is there a way to change this value in the timeline?
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @kkrg001 ,

    A simpler way of doing this might be to just set in advance the gradients you want to switch between in the VFX itself and move from one gradient to the other using a Lerp node and exposing a float parameter (in the 0-1 range) and animating that in timeline.

    In this example, when ExposedFloat is 0, you will get the rainbow gradient, and when it's 1 you will get the black and white one.
    upload_2020-7-13_12-13-7.png

    Hope this helps!
     
    florianhanke likes this.
  3. kkrg001

    kkrg001

    Joined:
    Mar 6, 2019
    Posts:
    35
    Hi VladVNeykov :)

    Thank you for your reply.
    I've searched for a while since then, and it seems difficult to add a keyframe.
    I think the method you proposed is better. Thank you for your help!
     
    VladVNeykov likes this.