The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

SoBiT
2014-02-10 14:41:01

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 :)

Tobias
2014-02-10 15:02:46

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