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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Add comment