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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Add comment