- Home /
[HELP]Server client simple example with cube
Suppose I have a scene with a plane and cube (script added for move the cube)and I uploaded it to my webhost. If I type http://abc.com (where abc is my websitename) the scene will load in my unity webplayer.If myfriend access this address in same time he will see two cube 1 for me and 2nd for his. If i move my cube he will see my cube moving or vice versa.I know this is server client concept. I googled but i get SmartFox,Photon concept Which i did't understand.I dont want to host the game in my local machine.I want to upload it in my website.I asked you bcoz if i get example on a simple cube then i will integrate with my virtual world. I think many developers like me want to know a method in simple way. So any one please help me with this. Thanks in advanced.
Plz dont tell me that---
"Take one day and read the documentation. Start with the page named "Networked Multiplayer" in the Unity Manual. It has several links to more detailed pages. From there, you'll start with the Network class."
Answer by roamcel · Aug 22, 2011 at 12:28 PM
Simply put, that bold thing you're asking not to be told, is EXACTLY the only thing anybody can tell you. There's no magic shortcut. -ALL- people here who is still struggling with networking can tell you that.
In any manner, there's a very good and complete working example that you can use and dissect: http://unity3d.com/support/resources/example-projects/networking-example.html
The only real fundamental concepts you need to wrap your mind about is RPC and NetworkView. the first being the network method call, the second being the component you need to attach to all things networking in unity.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
attached prefabs before client joins 2 Answers
Why can't the client move a networked object ? 1 Answer
Multiplayer - sending a variable from server to client 1 Answer
Multiplayer server-client setup 1 Answer