- Home /
Synchronisation problem unity
Hello,
I am developing simple drawing game in Unity. What I have is I have a white canvas and I applied to it a drawing script. I've setup a server and connected to it, but I cannot see what other person is drawing on my screen. The thing is that all of the tutorials about multiplayer games are with players(rigitbodies) and my game doesn't have physical players, it draws with the mouse cursor. How, and of course, is possible to make it in such way that the person on the other side to see what I've drawn?
Thanks!
Answer by Jeff-Kesselman · Nov 13, 2014 at 06:35 PM
Yes its possible, but it wont be automatic. You are going to have to write your own network communication code as all Untiy knwos how to do innately is propagate transforms across the net.
If your application isnt latency critical you may be able to get away with using Unity RPC calls. http://docs.unity3d.com/Manual/net-RPCDetails.html
Otherwise you will have to go lower and write your own packet protocol.
Thanks for the reply! I am not really into writing my own network protocol.. Do you think if I add brushes which represents the players it will be easier?
Your answer
Follow this Question
Related Questions
Unity Networking cannot connect to device in other countries ? 1 Answer
LLAPI, multiple connections 0 Answers
server connecting issue 1 Answer
error spawning player says I'm not connected when photon connects and puts me in a room 0 Answers
Multiplayer advanced - Single Player in Multiplayer game, using another Hosting services. 0 Answers