UNetPoolingUnspawnHandler Method |
[This is preliminary documentation and is subject to change.]
Despawns a GameObject, with pooling support.
Namespace:
Umbrace.Unity.PurePool.UNet
Assembly:
Umbrace.Unity.PurePool.UNet (in Umbrace.Unity.PurePool.UNet.dll) Version: 0.0.0.0 (1.0.0.0)
Syntaxpublic void UnspawnHandler(
GameObject instance
)
Parameters
- instance
- Type: UnityEngineGameObject
The GameObject to be despawned.
Remarks
This method should be passed to the RegisterPrefab(GameObject, SpawnDelegate, UnSpawnDelegate) or RegisterSpawnHandler(NetworkHash128, SpawnDelegate, UnSpawnDelegate) methods.
Despawning of a networked GameObject can then be performed by calling UnSpawn(GameObject).
See AlsoReference
ClientSceneRegisterPrefab(GameObject, SpawnDelegate, UnSpawnDelegate)
ClientSceneRegisterSpawnHandler(NetworkHash128, SpawnDelegate, UnSpawnDelegate)
NetworkServerUnSpawn(GameObject)