- Home /
How to find the closest object marked with a specific tag?
I know how to get distance between two objects, but I need to be able to find the closest object to this one with a specific tag, how canI do this in java script in unity? Thank you.
Comment
Answer by GesterX · May 12, 2011 at 01:01 PM
Look at the second example in the Script Reference Page for FindGameObjectsWithTag. It does almost exactly what you're asking for.
Your answer
