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.

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.