UNetPoolingRegisterSpawnHandler Method (NetworkHash128) |
[This is preliminary documentation and is subject to change.]
Registers the asset with the specified asset ID 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 public void RegisterSpawnHandler(
NetworkHash128 assetId
)
Parameters
- assetId
- Type: UnityEngine.NetworkingNetworkHash128
The asset ID of the asset that will be spawned.
Remarks assetId must be present in the
Prefabs dictionary, mapping to its prefab game object.
If the asset ID is not present in the dictionary, it will not be possible to spawn the object.
See Also