OverlapSphere vs FindGameObjectsWithTag

Apology first for me always thinking about scalability.
Right now there can be only one player since the code used FindObjectWithTag which only returns one object with the tag.

To allow scalability we can use either of these two methods.
My question is which of these two methods should I use?

1 Like

Well you could use FindGameObjectsWithTag which would return a list of game objects with the “Player” tag and you could identify them with the playerController or something, give them some sort of I.D.

FindGameObjectsWithTag hands down. You can then sort that list by the nearest player easily.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms