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.

NetworkView component on prefabs?

Discussion in 'Multiplayer' started by Unclet, Dec 22, 2007.

  1. Unclet

    Unclet

    Joined:
    Apr 12, 2007
    Posts:
    92
    Is it legal / desirable to include a network view component on a prefab that will be instantiated with Network.Instantiate?
     
  2. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    274
    Yes, definitely. Without it Network.Instantiate will not work because it uses the prefabs network view behind the scene (it peforms an RPC to send the instantiation over the network). If you do not use it for anything else you can turn off state synchronization and set the observed property to none.