- Home /
Does GameObject.FindGameObjectsWithTag("Player") work using photon ?
I am making an AI using c# and photon for unity but it only chases the host and not players that join.
Im using GameObject.FindGameObjectsWithTag("Player"); to find all the players in the server and then choosing the closest one. Does this work with photon over a network? Is there a different way to get the gameobjects of all the players in game?
Cheers.
Comment
if you find the answer for this can you let me know? i'm having difficulty with the same issue right now.
Your answer
![](https://koobas.hobune.stream/wayback/20220613130703im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GUILayout element alignment issue 0 Answers
RPC Player Name and show it above head 0 Answers
Animation does not work for the remote player 0 Answers
Photon View - Player Names/Properties. 1 Answer
Sync animaor of child prefab 0 Answers