Search Unity

Duplicated NetworkViewID with LoadLevelAdditive()

Discussion in 'Multiplayer' started by mannam, Apr 15, 2009.

  1. mannam

    mannam

    Joined:
    Jan 15, 2009
    Posts:
    24
    Hello,

    I noticed that if I load 2 identical scenes with LoadLevelAdditive(), the NetworkViewIDs in 2 scenes are identical, even Network.SetLevelPrefix() is used.

    How can I control the starting NetworkViewID for LoadLevelAdditive()?

    Thanks
     
  2. mannam

    mannam

    Joined:
    Jan 15, 2009
    Posts:
    24
    After some testing, I found that Network.SetLevelPrefix() works. It modifies a hidden attribute in NetworkViewID, rather than modifying the numeric ID directly. So the effect is invisible to the editor, unless printing to console.
     
    paskal007r likes this.