2D Toolkit Forum
2D Toolkit => Support => Topic started by: jasperPT on January 11, 2015, 03:49:25 pm
-
Hi,
It seems the only current way to use a mask is with a square shape, is there any way of changing the shape or even better using a sprite as the shape of the mask?
Cheers,
Jasper
-
No there isn't, the mask solution uses depth, and the mask geometry is limited to a rectangle.
-
Hi,
I've been trying to mask a sprite with depth, but whilst it works, other objects that are ABOVE this masked area in my scene also get cut off and not sure how to fix it. Tried different cameras, different depths and layer sorting.
Any ideas?
Thanks
-
Different depth sorting should work, but the thing to look at will be the shaders. Run through the frame using the frame debugger to find out what its doing - it could be drawing in the wrongorder.
-
Wanted to know the same. Sad that can't be done, Unity mask supports custom shapes but only for images objects, not for sprites :(