Search Issue Tracker

Feature Request

Votes

5

Found in

6000.2.9f1

6000.3.0b8

6000.4.0a3

Issue ID

UUM-123189

Regression

No

UI Toolkit's VisualElement with "Overflow: hidden" property fails to clip its child element when Render Mode is set to "World Space"

-

How to reproduce:
1. Open the attached “IN-120502_repro” project
2. Observe the Game window. Notice that the corners of the black area are rounded
3. In the Hierarchy tab, click on the “UIDocument” GameObject
4. In the Inspector, in the UI Document component open the “PanelSettings” asset
5. Set the Render Mode property to “World Space”
6. Observe the Game window

Expected result: The corners of the black area are rounded
Actual result: The corners of the black area are not rounded

Reproducible with: 6000.2.9f1, 6000.3.0b8, 6000.4.0a3
Could not test with: 2022.1.0a5, 6000.0.60f1 (61dfb374e36f), 6000.2.0a1 (No Render Mode property in the Panel Settings asset)

Reproducible on: macOS 15.3.2 (24D81) (M1 Max)
Not reproducible on: No other environments tested

Note: Reproducible in Player

  1. Resolution Note:

    This is a current limitation of world-space UI Toolkit as documented here:
    https://docs.unity3d.com/6000.2/Documentation/Manual/UIE-masking.html

    "arbitrary shape masking is currently not supported in World Space UI"

    As of today, overflow:hidden in world-space always uses a rectangle clip. Rouded masking shapes requires the use of the stencil buffer which may interact with other URP/HDRP features.

    However, world-space masking is a planned feature.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.