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
- Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
Add comment