Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

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:
    268
    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.
     
unityunity