LocalSpawnManager
A class in Root.Township, the global namespace.
Spawn manager for LocalNetworkScene: spawns and destroys prefabs locally with no networking. Client-side spawn methods aren't implemented.
- Listed in Global namespace: I to L
- Inherits or implements
SpawnManager - Documented in Spawning
Constructors
| Member | What it is |
|---|---|
LocalSpawnManager(INetworkScene networkScene, ILinkProvider linkProvider) | Creates a LocalSpawnManager from networkScene and linkProvider. |
Methods
| Member | What it is |
|---|---|
override void Destroy(NetworkEntity networkEntity, bool isUnload = false) | Runs the entity's destroy hooks, destroys embedded and child prefabs, then the game object. |
override bool SpawnAsClient(uint prefabHash, uint entityIdentifier, uint[] embeddedIdentifiers, TransformSave transformSave, bool isSettingScale, out NetworkEntity entity) | Not implemented; throws. |
override void SpawnExisting(NetworkPrefab prefab) | Not implemented; throws. |
override NetworkEntity SpawnInternal(uint prefabHash) | Instantiates the prefab with this hash, marks it and its embedded entities initialized, and turns off networking on its interactables. |
override bool WaitForSpawn(uint entityIdentifier, EntitySpawnedHandler handler) | Not implemented; throws. |