Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

How to mask spike trap in floor? [Solved]

Discussion in '2D' started by Caliber, Sep 14, 2018.

  1. Caliber


    Feb 11, 2018
    I have 3 sprites: spikes, hole & mask. I want the spike to pop out of the hole, and when it's retracted, it's hidden by the mask.

    I can figure out the triggers and movement, but not the visual part. How do I use the mask with the spike?

    (I know it can be done with a spritesheet, but I'd prefer to do it like this)

    Edit: Solved! Sorry, I had misunderstood how the Sprite Mask object works
    Last edited: Sep 14, 2018