I've an object with a movietexture and i need to play this video from a non-authoritatice server in a way that it plays simultaneously in all the clients. I've networkview on this object but it doesn't get synchronized this way. I can see the every player that enters the game with their animations but just not this object. Video is being played from this script:
if (Input.GetButtonDown ("")) { if (renderer.material.mainTexture.isPlaying) { renderer.material.mainTexture.Pause(); other.audio.Pause(); } else { renderer.material.mainTexture.Play(); other.audio.Play(); } }
This is what my OnSerializeNetworkView looks like:
if (stream.isWriting){
var pos : Vector3 = transform.position;
stream.Serialize(pos);//"Encode" it, and send it
}else{
var posReceive : Vector3 = Vector3.zero;
stream.Serialize(posReceive);
transform.position = posReceive;</p>
}
What am i doing wrong?