Hi,
I’m currently in the making of an iPhone 15 Pro and I stumbled across an issue.
I obviously have a cutout at the top for the dynamic island as shown below.
Is there a way to not make this happen? I tried using ClipDescendants and it did not work, because I have a front-camera as well but the UI is overlapping it.
If you require an rbxm file, here. deleted
I can try to make it since I’m bored if you show me exactly what you want to do, as I still don’t understand the dynamic island appearance/camera you want
Oh, then, unfortunately you can’t. SurfaceGuis render on a flat panel the size of the part, while decals and textures render the geometry again with the image on it.
Well instead of making an actual cutout, you could make a frame Gui and add a UICorner and set the CornerRadius to “1” (for the UICorner) and then size it to how you wanted it, and that can be your “cutout” although it won’t be a legit cutout…
Oh I’m sorry. Didn’t read the replies, my bad.
I think the best thing to do is to make the model without a cutout. Add a roundified label at the top of the phone as the cutout and set its zindex higher than the other UI.
Probably the best solution
Step 1: Insert a Basepart, Part
Step 2: Make its size match the phones size
Step 3: Copy the “SurfaceGUI” instance from your mesh to the Basepart “Part”
Step 4: Scale the Basepart “Part” down on its Y axis until it does not cover the cutout.