Search Unity

Question How to create scatter effect in unity (without VFX graph)

Discussion in 'General Discussion' started by Gunner22, Nov 14, 2022.

  1. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    56
    I would like to create a scatter effect just like in adobe after effects but without using VFX graph (I want it to work on webgl and it seams VFX is not working there). I guess particle system would be a good fit but I am not sure if it is possible to do it like that.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,448
    should it look something like this?
    https://github.com/ToughNutToCrack/Disintegration
    *but that one uses geometry shader, so might not work in webgl.

    in unity particle system, you can spawn from mesh surface,
    and at the same time could have dissolve shader in that mesh (to make it disappear).
    (not sure how realistic that would look though)
     
  3. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    56
    Is there a way to do it on 2d image?
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,448
    is that quad, sprite or UI?
     
  5. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    56
    I would prefer UI but if not possible I can probably make it with other 2.
     
  6. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    56
    In the end I set particles shape to sprite and use wanted sprite for a sprite and texture field.
    This video help me a lot: