Mask non-UI game objects with a Mask component?

Hi, I have some objects with procedurally generated meshes and animated sprites that are children of a UI Panel so they move around with the panel.

I want to put these objects into a ScrollRect and mask them to only be visible in the area of the ScrollRect with the Mask component. By default this doesn’t happen. All the UI gameobjects get masked, but the non-UI gameobjects don’t get masked. Is it possible to do this with shaders or some other method?

Thanks.

Not currently. It is on our roadmap.

1 Like

I’ve been trying to do a similar thing with the UI mask. Wanted to put 3D fire behind UI Image with Mask. then blend two cameras for game over screen, etc…so you could see where the game ended with the game over image (as a mask image) with flames showing only in masked area…

Is this still in road map?

is it still roadmap lol