Search Unity

Synchronization animation NetworkView

Discussion in 'Multiplayer' started by sztacheta28, Jun 20, 2010.

  1. sztacheta28

    sztacheta28

    Joined:
    Jan 11, 2010
    Posts:
    12
    I have some questions about synchronization of animation.
    I added Animation to Observed in NetworkView and I set StateSynchronization to Reliable Delta Compressed.

    1. Should I off scripts whitch control animation if player isn't mine?
    2. Should I add NetworkRigidbody to NetworkView and set StateSynchronization to Reliable Delta Compressed?

    Sry for my english :)
     
  2. Gaba

    Gaba

    Joined:
    May 29, 2009
    Posts:
    41
    syncing animation trough the network view is quite expensive, are you sure you want to do that?

    if you want to use the network rigidbody script, you wouldn't be able to sync animation either way(you can oly watch one component).

    My solution would be to watch the network rigidbody, and sync animation trough RPCs(just use one everytime an animation changes)