Search Issue Tracker
Fixed in 2017.3.0f3
Votes
1
Found in
2017.2.0b8
Issue ID
945680
Regression
No
Child GameObjects in a Horizontal/Vertical Layout Group don't display their correct position in the Editor
How to reproduce:
1. Download attached project files
2. Open "HorizontalGroupBug" Scene
3. In Hierarchy Window go to Canvas -> Panel -> HorizontalGroup
4. Right click on HorizontalGroup and add an empty GameObject child (In the scene view note that child position is correct)
5. Select the new GameObject and change its Width from 100 to 200 (In the scene view note that the object is no longer correctly positioned in the HorizontalGroup)
Expected result: Modifying items in LayoutGroups should display properly in Scene View same as what the item will actually be in the game
Actual result: When modifying items in a HorizontalLayoutGroup or VerticalLayoutGroup, the item displayed in the editor is not a proper representation of what the item will actually be in the game
Reproduced with: 5.5.4p3, 5.6.3p2, 2017.1.0p5, 2017.2.0b9, 2017.3.0a5
Workaround: Go into Play Mode and once play has begun, change back to the Scene tab and note that the GameObject has moved and is now in the correct position.
Comments (3)
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
jasonMcintosh
Oct 27, 2017 00:47
You can also disable/enable the parent container to correct the layout. Doesn't happen on device builds. I'm using 2017.2.0f3.
michelm
Sep 29, 2017 13:44
I can't see the original project files, but in my case the issue seems to be because there's a Layout Element in the hierarchy ABOVE the Grid Layout Group. I have no idea why this suddenly affects the positioning of items in a layout group.
michelm
Sep 29, 2017 13:30
This also happens with Grid Layout Group. Incredibly annoying. I have to manually position menu items every time I want to test/play in the editor! It's been over a month now, please fix this, Unity.