Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Network.isServer

$
0
0
I need an equivalent to Network.isServer using Unity's new multiplayer way of doing things (since the old one is going to be obsolete in the near future).

Right now, Network.isServer always yields "false" even on clients that are servers so the new way is definitely not compatible with the old.

I need a way for a MonoBehavior to ask if the application is connected and whenever or not it's the one hosting the game. NetworkServer.active's description seems too vague to do the job especially...

Network.isServer

Viewing all articles
Browse latest Browse all 16796