I’m trying to create a leaderboard for my game. However, there is one issue I’m running into. I have a union which is basically just a rectangle and triangle together. If I add SurfaceGui to it, it covers a rectangle of area and runs off the union.
Solution 2: This solution is better, but isn’t perfect. This involves using an almost completely transparent part (Transparency 0.99999, shown as 1) with CanCollide set to false and Glass material. Due to the unique properties of the Glass material, it will hide the SurfaceGui. However, it will also hide other things behind it and can look slightly weird.
I think the SurfaceGui is only for placing the UI onto a surface, just as ScreenGui is for placing it onto the screen.
CanvasGroup in the other hand renders its descendant UIs as one UI object:
CanvasGroup renders descendants as a group with color and transparency applied to the render result. GuiEffect (UICorner and UIGradient) under CanvasGroup will also apply to the whole group.