Search Unity

Question Visual Effect Graph: how to mask particles?

Discussion in 'Visual Effect Graph' started by laurienash, Apr 20, 2021.

  1. laurienash

    laurienash

    Joined:
    Mar 15, 2013
    Posts:
    61
    Hi,

    I've set up a sprite mask where sprites are only visible inside the mask.

    I've attached a vfx object to it, and would also like to mask the vfx particles...

    upload_2021-4-20_22-36-56.png

    I'm not sure how to go about it. I tried setting the alpha with the same texture as the sprite mask. However this won't work as I can't link it to the specific sprite (with transform information) in the scene.

    upload_2021-4-20_22-39-11.png

    Is there a way of masking the vfx with mask objects placed in the scene?

    Thanks!
     
    EnigmaFactory likes this.
  2. EnigmaFactory

    EnigmaFactory

    Joined:
    Dec 10, 2011
    Posts:
    98
  3. Nuno57

    Nuno57

    Joined:
    Oct 4, 2019
    Posts:
    2