Search Unity

Custom start position player handling

Discussion in 'Multiplayer' started by xVergilx, Apr 25, 2017.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    I'm trying to get a specific spawn position for player. When I change player position to that point it gets overrided by NetworkManager. This happens only if I'm connecting as a client, as a host everything works perfectly.

    Is there a way to disable automatic player position change on client by NetworkManager when using NetworkStartPosition?
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Found it. It's in OnServerAddPlayer(...) method.