Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

0

Found in

2022.3.61f1

6000.0.47f1

6000.1.0f1

6000.2.0a9

Issue ID

UUM-103876

Regression

No

Vertical Layout Group doesn't maintain proper spacing when nested UI elements change size at runtime

-

How to reproduce:
1. Open the attached “IN-99380” project
2. Open the “SampleScene“
3. Enter Play mode
4. Using the left mouse button, click at least three times in the Game view
5. Observe the results in the Game view

Expected result: “DirectElement(Clone)” and “NestedElement(Clone)” GameObjects change size while maintaining space between them
Actual result: "NestedElement(Clone)" doesn't maintain proper spacing, and elements overlap each other when changing size

Reproducible with: 2022.1.0a10, 2022.3.61f1, 6000.0.47f1, 6000.1.0f1, 6000.2.0a9

Reproducible on: MacOS 15.3 (M4), Windows 11 (by user)
Not reproducible on: No other environments tested

Notes:
- Reproducible in Standalone Player
- The “DirectElement” and “NestedElement” prefabs use the “DynamicElement.cs“ script for size changes
- The “NestedElement” prefab has the “Image” component on its child object
- The “DirectElement” prefab has the “Image” component directly on it

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.