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

UI

-

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)

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.