2D Toolkit Forum
2D Toolkit => Support => Topic started by: BitEver on July 09, 2013, 07:30:10 pm
-
Hello,
I wonder if this can be done:
(http://img201.imagevenue.com/loc77/th_386326147_MaskedArea_122_77lo.jpg)
I have a sprite that goes slowly down the level, and I want to do that when passing through certain areas this sprite disappears.
I tried with ClippedSprite, but not the solution, because I need is that only disappears in certain areas.
Any solution??
Cocos 2D is that GLScissor used for what I want to do, but not how to do with Unity and 2D Tool Kit
Thank you.
-
You can't do GLScissor in Unity, its not exposed.
But all is not lost. Look at how 2D Toolkit does clipping in the UI, eg. in the scrollable area. There is the mask object you can place in the scene to basically mask everything inside the volume.
-
Oh, it's great!
Sorry for not having seen this before.
Thank you very much unikron, perfect as always.
Cheers!