Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unity Multiplayer Sync player transform's scale directly?

Discussion in 'Connected Games' started by rikey, Jun 28, 2015.

  1. rikey

    rikey

    Joined:
    Mar 3, 2015
    Posts:
    147
    Is there a native way to sync the player transform's scale? Setting transform.localScale for the local player doesn't seem to propagate to other clients automatically via the NetworkTransform.
     
  2. MartinLyne

    MartinLyne

    Joined:
    Apr 25, 2013
    Posts:
    30
  3. rikey

    rikey

    Joined:
    Mar 3, 2015
    Posts:
    147
    Thanks. For a side-view 2D game, syncing the localScale is pretty often, so there will have to be a SyncVar with a hook function that updates things like player.localScale.