- Home /
How do I find the name of the network I'm connected to?
This seems like a silly question, however when searching the API I found no good way to go about it. I tried searching for the answer but if it was there it was washed away from the Oceanic Tide of network view questions...
Basically, on client side, how do i check the name of the server I'm currently connected to? (And if possible other attributes about the server as well)
Thanks for reading, and thanks for the answer if you can provide one. ^.^
Answer by ScroodgeM · Aug 06, 2012 at 08:33 PM
create a simple RPC method, that is sent by server and providing data about itself, and a RPC-receiver on clients that receives and stores that data. call this method on server in OnPlayerConnected() method, so every client will get info about server.
http://docs.unity3d.com/Documentation/ScriptReference/NetworkView.RPC.html
Your answer
Follow this Question
Related Questions
StateMachineBehaviour get name ?? 2 Answers
RPC Player Name and show it above head 0 Answers
TextMesh multiplayer/network issue 0 Answers
How to distinguish each characters in networkplay? 1 Answer
Player Name on Network - UNet - Bug 0 Answers