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. Dismiss Notice

Mask mesh renderer outside sprite bounds

Discussion in '2D' started by Mystic_Quest, May 6, 2020.

  1. Mystic_Quest

    Mystic_Quest

    Joined:
    Feb 22, 2016
    Posts:
    47
    Hello. Made a couple of mesh particle systems, one of which, creates meshes with spritesheet textures, to represent wounds/blood stains on the sprite that appear at the point where it was shot. It is the "WoundParticleSystemHandler", child of the "wounded" sprite.

    https://imgur.com/a/trsb3Qz

    The problem is that I want to mask/occlude the parts of the blood that are outside the bounds of my sprite (to the left of the yellow line I've drawn in the screenshot for example).

    I can't do it with a sprite mask though because the WoundParticleSystemHandler has a mesh renderer so there is no option for them to be "visible inside the mask" like there would be with a sprite renderer. Any ideas? :(
     
    Last edited: Jun 15, 2020
  2. Mystic_Quest

    Mystic_Quest

    Joined:
    Feb 22, 2016
    Posts:
    47
    Bump - rephrased the question.