Are you trying to make only a circular portion of the rectangle shape show? Or are you trying to hide the circular part of the rectangle? If the first one, the setup you have above should work as far as I know. The second, would require a different mask shape or just an overlay.
i’m trying to do a screen transition, so there’s a black image / panel that is always scaled to the size of the screen. And then there’s a circle that scales in and out, this circle should cutout the black image.
I’ve attached a couple mockup images to show you what I mean.
so the circle should cut a hole in the back background
So in your previous hierarchy that you referenced, am I right to assume the rectangle shape is the black rectangle and you’re trying to basically cut a hole out of it so the beach scene shows through? If so you’ll have to re-organize things a bit.
What the mask should allow you to do is have only the circle image (mask) portion of the beach scene be shown, while the black area is the background.
So the hierarchy would be:
Canvas
– UI Image (black background) or it could just be your skybox or background color or whatever.
– UI Image + mask (this holds the circle image)
– UI Image (child of the mask image, holds the beach scene image)
no still not there… so the issue is that i’m not trying to mask the beach image, its not a image, it’s a scene… so I need to cutout a transparent hole in the black image. Hope that makes sense?
Using ProBuilder, you can create a Sprite or Plane, then Open ProBuilder, and Subdivide Faces. Select faces that you don’t need from the middle and remove them. Then edit vertexes and edges to make the middle part in a circular shape.