Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    459
    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"