How would I do this?

How would I make the camrea look at the nearest object with a certain tag?

Use GameObject.FindGameObjectsWithTag() to find all the objects with the specified tag. (Alternatively, if you’re only interested in objects within a certain range and you’re using the built-in physics system, you could perform a sphere proximity query and then filter out the objects that don’t have the specified tag.)

Then, iterate over the objects. Compute the distance (or squared distance) to each, and keep track of the object with the least distance (or squared distance) as you go. At the end of the process, you’ll have your closest object.

(Squared distance is faster.)

I don’t know if that was directed at me or the OP, but if it was directed at me, yes, I know that :slight_smile: However, getting it working with distance first might be easier for the OP. (And one can always optimize later, of course.)