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
- Profiler connects to a different opened Editor project when more than one project is open and building for WebGL with Autoconnect Profiler enabled
- Creating and then deleting the "Integration Update: Rotation" block breaks and makes unusable VFX Graph
- “ArgumentNullException: Value cannot be null.” when deleting a newly created input action
- Undoing the creation of the "Button - TextMeshPro" GameObject only removes Canvas and EventSystem GameObjects
- A distorted audio clip is played when transitioning to another audio clip using Pitch Shifter Audio Effect
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.