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
- Crash on mono_dump_native_crash_info when changing a Particle System Renderer’s Material Shader to Standard Unlit
- VFX Prefab doesn’t have Preview icon in Project window and Preview window is empty in Inspector window
- “RenderSettings customReflection texture has invalid type” error keeps getting thrown even when Environment Reflections was set back to Skybox from Custom with an invalid texture
- Particle System with the custom Material breaks the Scene view when the material is using a Shader Graph with the Texture with the power of negative value
- Invalid asset path & Invalid value for font MissingAssetReference Warnings are spammed when deleting a Font used by any Element in UI Builder
Add comment