- Home /
Question by
Superboonie88 · Sep 05, 2012 at 07:12 PM ·
tagname
Name and tag
Unity has API that allows you to find a game object via name and tag. When is the appropriate time to use one over the other?
Comment
Answer by ScroodgeM · Sep 05, 2012 at 07:14 PM
you can have objects like 'rat', 'dog', 'crocodile' and all of them marked as 'enemy'
also you can have some set of elements 'wall' and it can be marked as 'destroyable', 'solid', 'virtual' etc
depends on your gameplay
http://docs.unity3d.com/Documentation/Components/Tags.html
A GameObject can only have one Tag assigned to it.
Your answer
Follow this Question
Related Questions
Detecting name through OnMouseDown 1 Answer
Help with string to gameObject.name 2 Answers
Raycast detection / lag issue 0 Answers
Setting name/tag over network. 1 Answer