Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Fixed Seed for a specific system

Discussion in 'Visual Effect Graph' started by Kikimacia, Apr 23, 2020.

  1. Kikimacia

    Kikimacia

    Joined:
    Jan 27, 2020
    Posts:
    17
    Hi everybody !

    I was working on a simple FX with some classic round particles in it, I was using those as additive, but the colors were kind of meh at this point, I thought I could just duplicate my system, put one in alpha behind the additive and do the trick, but they're both generated by another system with a trigger event and a gpu event, and they just wont do the same simulation. Is there a way to force to chose one seed ?
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    On the visual effect component you can disable "Reseed on Play" and just set a static seed for both of the effects.
     
  3. Kikimacia

    Kikimacia

    Joined:
    Jan 27, 2020
    Posts:
    17
    Tbh I don't see any difference with this one checked or unchecked :/
     
  4. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    307
    2 plays of an effect with the same seed should have deterministic behaviour. GPU event can however break this determinism in some circumstances atm.

    Anyway for we you want, you probably dont need to duplicate systems but just using 2 outputs on the same system should work. Or even better, using only one output in premultiplied alpha blend mode can allow you to mix both alpha blended and additive in a single pass.