Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    277
    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.