How can I detect the nearest gameobject with a given tag, without having to scan all the gameobject with that tag. For example if I want to find the nearest tree and I have 2500 trees, how could I prevent scanning all the trees.
↧