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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
Add comment