Search Issue Tracker
Not Reproducible
Votes
0
Found in
4.6.0b5
Issue ID
600574
Regression
No
NullReferenceException when adding an Empty Space from a Layout Group
Steps to reproduce :
- create a new project
- create a canvas
- go to Component > UI > Layout > Horizontal Layout Group and add it to the canvas
- in the Elements add an Empty Space and notice the error in the console
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UI.LayoutElementListDrawer.RefreshElementDictionary () (at C:/BuildAgent/work/aeedb04a1292f85a/Extensions/guisystem/guisystemeditor/UI/PropertyDrawers/LayoutElementListDrawer.cs:50)
UnityEditor.UI.LayoutElementListDrawer.AddElement (UnityEngine.RectTransform tr) (at C:/BuildAgent/work/aeedb04a1292f85a/Extensions/guisystem/guisystemeditor/UI/PropertyDrawers/LayoutElementListDrawer.cs:152)
UnityEditor.UI.LayoutElementListDrawer.AddElement (System.Object obj) (at C:/BuildAgent/work/aeedb04a1292f85a/Extensions/guisystem/guisystemeditor/UI/PropertyDrawers/LayoutElementListDrawer.cs:130)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, Int32 selected) (at C:/BuildAgent/work/aeedb04a1292f85a/artifacts/EditorGenerated/GenericMenu.cs:113)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
Add comment