Files
2026-09-20 15:53:11 +08:00

1.6 KiB

description
description
An easy tool to assist with spawning specific objects as soon as the server starts.

ServerSpawner

Description

The ServerSpawner component is a helpful tool that you can use for optionally instantiating and spawning objects as soon as the FishNet server successfully starts running (or on your own command if preferred). This is very often used to instantiate Global Network Objects1 , which need to be instantiated at run-time instead of existing inside a scene directly.

Settings

Default settings

⚙️ Automatically Spawn

This dictates whether the component will instantiate and spawn the objects as soon as the server starts, or only after you manually call Spawn on the ServerSpawner component.

You can disable this if you want to manually control when these objects are spawned.

⚙️ Network Objects

This is a list of the Network Objects the component will instantiate once the server starts. The order of this list is respected when instantiating the objects, and the component will attempt to use FishNet's object pooling for the objects if they are added to the an object pool.


  1. These are NetworkObjects that are added to the DontDestroyOnLoad scene and visible to all clients. ↩︎