Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.3.X, 2020.1.X
Votes
0
Found in
2019.3.0a3
2020.1
2020.2
2020.2.0a8
Issue ID
1240105
Regression
Yes
[Themes] Components of a gameObject are not displayed in Inspector if its tag is deleted
If a tag of GameObject is deleted by resetting tag list, Unity Exceptions are thrown and the components of a gameObject are also not displayed in Inspector. Refer the video attached
Steps to reproduce:
1) Create a new project
2) Edit > Project Settings > Tags and Layers
3) Create a new tag > Assign the tag to any gameObject in Hierarchy
4) Reset the tag list in Project Settings
Actual Result: Unity Exceptions are thrown continuously and the components attached to the gameObject are no longer displayed in Inspector
Expected Result: Components attached to the gameObject should be displayed and if its tag is deleted, then the tag should be undefined
Occurring in: 2020.2.0a8, 2020.1.0b6, 2019.3.11f1, 2019.3.0a3
Working fine in: 2019.3.0a2
Environment: Both Mac and Windows
Stack trace:
UnityException: GameObject has undefined tag!
UnityEditor.GameObjectInspector.DoTagsField (UnityEngine.GameObject go) (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEditor.GameObjectInspector.DrawInspector () (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEditor.GameObjectInspector.OnHeaderGUI () (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEditor.Editor.DrawHeader () (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEditor.UIElements.EditorElement.DrawEditorLargeHeader (UnityEditor.Editor[] editors, System.Boolean& wasVisible) (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <4902609bbafe4d5b9dd46388c8fb5bfd>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <98ff1732e5d04ac6a96f32fd084b153f>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
- Crash when attempting to create a custom FMOD DSP unit
Add comment