Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Change a float every X seconds in vfx graph

Discussion in 'Visual Effect Graph' started by Silvere69, Apr 8, 2024.

  1. Silvere69

    Silvere69

    Joined:
    Jul 12, 2016
    Posts:
    40
    Hello everyone!

    I'm wondering how can i change a float every X seconds in vfx graph but without programming, only in vfx graph using node.
    I want to change every X seconds a float (or int) between A to B and B to A... etc

    I think it's basic but i'm little bit new in nodes vfx graph.

    Thank you :)
     
  2. Marie_G

    Marie_G

    Unity Technologies

    Joined:
    Mar 9, 2021
    Posts:
    79
    Hello, My First guess would be to use time and branches, you can try something like this:

    Make sure to do this un update or output, as the attribute would not be updated in init

    upload_2024-4-8_16-56-13.png
     
    Silvere69 likes this.
  3. Silvere69

    Silvere69

    Joined:
    Jul 12, 2016
    Posts:
    40
    thanks i will try it :)
     
    Marie_G likes this.