Question by
Donovan26BA · Jun 25, 2021 at 08:22 AM ·
2dalphaspriterenderer2d spritessprite-animation
Using a dynamic game object as a mask for another game object - Unity 2D
Is there any way to use an animated 2D gameObject to control the visibility of another gameObject? I know about sprite mask but it doesn't really work for what I need to do.
I have an object/prefab that gets instantiated dynamically during gameplay and scales up over time. I want to try and use this particular object with it's scaling as a visibility mask for the graphics/sprite underneath it - basically like a track matte in After Effects.
Is there any way to do this? Is there something I'm not thinking of? Any help would be appreciated.
Thank you!
Comment