Spectator Mode
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Spectator Mode
qwerty777
2014-02-04 13:51:45
Hi,
I want to develop a spectator mode in unity multiplayer. Basically the room creator will be able to spectate/see what exactly what the client see or do (i know its like spying but this is honestly for educational purposes 8-) ). Any suggestion on where to start please ?
Comments
I think you could just do this with Unity functions. I don't know if this works (I'm very new to Photon) but try it:
[code2=csharp]Camera.main = yourClientObject.camera;[/code2]
If this is totally stupid, I'm sorry. Just tried to help :)
Photon does not support spectators per se. For Photon, any client that joins a room is treated as player. Also, it makes sense to let anyone create rooms and not require some spectator to create it, just to be the first in it. Aside from this, you basically just have to join any room with a client that doesn't act and that makes sure the others know it's not going to (cause it's just watching). Your game logic has to accomodate spectators.
Back to top