Search Issue Tracker
Won't Fix
Votes
1
Found in
5.5.2f1
Issue ID
891584
Regression
No
[Player] GameObject has undefined tag in build when new tag is attached and old one is deleted in Editor
How to reproduce:
1. Create a new project
2. Add GameObject to the scene
3. Select it and add a Tag via Inspector (example "Tag1")
4. Assign Tag ("Tag1") to GameObject
5. Create a script which validates a given Tag name and attach it to GameObject
-if you build the scene at this moment, it should find the tag
6. Create another Tag and assign it to the GameObject (for example "Tag2")
7. Delete "Tag1" from Tag Manager
8. Update the script to validate the new tag "Tag2"
9. Play the scene and notice that it finds the Tag
10. Build and run Standalone Player/ Android/ iOS
Result: you will get UnityException: GameObject has undefined tag! error
Reproducible: 5.5.0f1, 5.5.2p3, 5.6.0f1, 2017.1.0a3. (Reproduced on windows standalone player, Android and iOS)
New Tags' system was introduces in Unity 5.5
Workaround is to restart editor before you make a build if you remove one or more tags.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent logic on when 'open VFX graph Samples' button appears on Visual Effect Graph in Package Manager
- Unable to dock tabs on panels when non-standard pointers are used (touch-screen, tablet and pen)
- Editor hangs when rendering TMP Text Component with Left and Right Margins set in the Extra Settings
- Occlusion's fields can be set to negative numbers
- Issues with tutorial content in Universal 3D sample
Add comment