- Home /
Clipping all descendant game objects rendering in 2D
Hello, everyone. I am not sure how to solve the clipping thing. The desire is very similar to what iOS and Android does with views (by adding clipsToBounds or clipToPadding respectively). Say I have 2D game, and i have hierarchy of game objects. On some level i have 2 game objects representing some "worlds". I want to clip all children renderings outside of this game objects rect transforms. Is this possible? RectMask2d is only for canvas elements, adding mask would result in manually checking all sprites in hierarchy to be affected. Rendering to texture also does not really what i want. Any ideas?
Your answer
Follow this Question
Related Questions
Masking a MeshRenderer 0 Answers
Masking a 3D Object using a 3D Volume 3 Answers
Is there any way to create a fade effect in order to hide what isn't rendered by the camera? 0 Answers
Can you not render a certain object after a certain distance? 2 Answers
A mesh behind other meshes appears above depending on viewing distance. 1 Answer