LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkServer.SpawnObjects

public static bool SpawnObjects();

Returns

bool Success if objects where spawned.

Description

This causes NetworkIdentity objects in a scene to be spawned on a server.

NetworkIdentity objects in a scene are disabled by default. Calling SpawnObjects() causes these scene objects to be enabled and spawned. It is like calling NetworkServer.Spawn() for each of them.