- Home /
Default GameObject Tag: Tag already registered
Default GameObject Tag: Tag already registered
Unity Community- Please make a habit of making the CONSOLE ERROR as the title to your threads... it will make it easier for all of us to find a solution to our problems :)
I cannot see that I'm the only one with this particular issue.
This is an error I am getting because I accidentally added the same name tag in the inspector. My own dumb fault, I know. But, if I try to delete the duplicate tag, it only deletes the name, leaves a blank name space and still gives the above error in the console. There has got to be a way to clean up duplicate names and unused inspector registry slots.
I found this thread: Default GameObject BitMask: already registered
The answer was to delete the TagManager.asset file from Library. Upon restart the TagManager file is re-written. This actually works GREAT, but then all the Layers I created and corrosponding Physics Matrix is deleted.
Does anyone else know a fix, clean up solution, or a have a good link to share?
Thanks all!
Answer by DigitalDogfight · Nov 02, 2011 at 11:57 PM
All right, I figured it out. As I noted above, deleting the TagManager.asset file from Library folder will clean up your tags. This also causes all your layer NAMES to be deleted along with all your Physics Matrix info (Edit> ProjectSettings> Physics).
Here's what's happening, the LAYER NAMES are getting deleted in the inspector, but all your objects are STILL LINKED to the registry layer numbers and will work. You'll notice the Layer drop-down is blank for each object.
Back up your files before trying this, as usual.
Do a screen capture of both the Layer Editor and Physics Matrix to be sure things will be exactly as named and set up before.
Shut down Unity, delete or move the TagManager.asset file to your desktop as a backup. It will be rewritten with cleaned up tags.
Go back in and RENAME all your blank layers in the inspector as you had before.
Check the Physics Matrix, you'll see that all your layer connections are back.
Test and back up your files.
Hope this helps!
Answer by Kutulue · Aug 22, 2014 at 10:14 AM
This problem seems to have been improved in later versions of Unity. I had the exact same issue. I added the Player tag when it already existed and was getting the console message.
I went into the add tag option and it shows all tags you have added. It will show a number above the tags which is how many user defined tags you have + 1. If the problem empty tag is the last one in the list simply reduce the tag count number by one. It will remove the offending tag and the console message will go away.
Answer by cpw1986913 · Jul 29, 2013 at 07:54 AM
you maybe have many tags like " "(blank space),there are the same,so lead this caution.
Answer by umair_hassan · Dec 24, 2014 at 05:20 PM
You have to delete the tag which is mentioned multiple time in tag list.
Your answer
Follow this Question
Related Questions
Tag-like Property Applied to Children (Inspector) 1 Answer
All the objects in my script choose the same target. 2 Answers
Access a child from the parent or other gameObject. 2 Answers
how to link objects in the inspector on load level 1 Answer
difference between GameObject.FindGameObjectWithTag(Tag tag) and GameObject.FindWithTag(Tag tag) 3 Answers