Unity Issue Tracker - Box Collider inherits an incorrect Z value when added to a Panel Renderer with PanelSettings set to World Space
Closed
UUM-138383
Box Collider inherits an incorrect Z value when added to a Panel Renderer with PanelSettings set to World Space
Unity: UI Toolkit Controls
As Designed
6.6.X
6.5.X
This seems to be by design. The box collider probably won't support a completely flat dimension, so it seems to clamp to a close-to-zero value.
Steps to reproduce:
RMB in the Hierarchy>UI Toolkit>Panel Renderer
Select it
Double click the Panel Settings in the Inspector
Set Render Mode to World Space
Re-select the Panel Renderer and add a Box Collider
Observe the value of its Z axis (9.44166e-07) and compare to the visual in the scene (screenshot attached)
Actual results: A non-0 value is visible in the inspector, however, the preview gizmo is showing a 0-sized Z axis
Expected results: a) the Z value is set to 0 or b) the preview gizmo is correctly displaying the non-0 value that the collider appears to be created with
Reproducible with versions: 6000.5.0a5, 6000.5.0b2, 6000.6.0a2
Tested on (OS): Mac OS
Notes:
Not tested with earlier versions because Panel Renderer is a new feature that landed in 6000.5.0a5
Prioritise and Follow this issue
Have a workaround or additional info about this issue?