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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warnings in the Bug Reporter window are cut off and not truncated when the Bug Reporter window is resized to its minimum size
- Color is incorrectly applied to objects when initialized with non-normalized parameters
- SerializationUtility.GetManagedReferencesWithMissingTypes() don't return null when “Prefab has missing SerializeReference Types“ warning banner is present
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
- The Canvas component's warning box is missing an apostrophe when Additional Shader Channels is set to "Normal" and "Tangent" with Render Mode set to "Screen Space - Overlay"
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.