Search Unity

OnSerializeNetworkView executed before or after Start() ?

Discussion in 'Multiplayer' started by llavigne, Mar 25, 2008.

  1. llavigne

    llavigne

    Joined:
    Dec 27, 2007
    Posts:
    977
    It seems it's executed before which makes no sense confirmation ?
     
  2. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472
    After for the case I am looking at (on a client, with an instance created on the server). I doubt you can rely on the order, unfortunately. I wish I could in this case, as I find the documentation on MonoBehavior.Awake to have led me in the wrong direction:
    "use Awake instead of the constructor for initialization, as the serialized state of the component is undefined at construction time"