Click or drag to resize

UNetPoolingRegisterSpawnHandler Method (GameObject)

[This is preliminary documentation and is subject to change.]

Registers the specified prefab with the UNET spawning system, 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)
Syntax
C#
public void RegisterSpawnHandler(
	GameObject prefab
)

Parameters

prefab
Type: UnityEngineGameObject
The prefab that will be spawned.
Remarks
This is equivalent to calling RegisterPrefab(GameObject, SpawnDelegate, UnSpawnDelegate), and passing SpawnHandler(Vector3, NetworkHash128) and UnspawnHandler(GameObject), in addition to adding the prefab to the Prefabs dictionary.
See Also