Basically i have a script that edits the location of a box, this box updates from host to client so they both see the box move, but on client to host it has no effect, on debuging the SyncVar Hook i made never calles the function, here is how its setup..
class ObjectUpdatePossition, is attached to the object that im trying to move.
Unity 5.2 SyncVar hook only gets called on host.
class ObjectUpdatePossition, is attached to the object that im trying to move.
Code (CSharp):
- public class ObjectUpdatePossition : NetworkBehaviour
- {
- [SyncVar(hook = "value_changed")]
- private Vector3 syncpos;
- void...