Click or drag to resize

UNetPooling Class

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

An integration component that allows UNET networking to utilise object pooling.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Umbrace.Unity.PurePool.UNetUNetPooling

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#
[AddComponentMenu("Scripts/Umbrace.Unity.PurePool.UNet/UNet Pooling")]
public class UNetPooling : MonoBehaviour

The UNetPooling type exposes the following members.

Constructors
  NameDescription
Public methodUNetPooling
Initializes a new instance of the UNetPooling class
Top
Properties
  NameDescription
Public propertyPrefabs
Gets a dictionary of game objects that have been registered for spawning with pooling support.
Top
Methods
  NameDescription
Public methodCreatePoolsForNetworkedPrefabs
Creates new pools using the default settings, for every prefab currently registered with ClientScene with pooling support.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRegisterNetworkedPrefabsForAllPools
Registers all prefabs from pools attached to the manager with the UNET spawning system, with pooling support.
Public methodRegisterSpawnHandler(GameObject)
Registers the specified prefab with the UNET spawning system, with pooling support.
Public methodRegisterSpawnHandler(NetworkHash128)
Registers the asset with the specified asset ID with the UNET spawning system, with pooling support.
Public methodRegisterSpawnHandlers
Registers pooling-based spawn handlers for all prefabs that have been registered with ClientScene.
Public methodSpawnHandler
Spawns a GameObject that's been registered with ClientScene, with pooling support.
Public methodToString (Inherited from Object.)
Public methodUnspawnHandler
Despawns a GameObject, with pooling support.
Top
Fields
  NameDescription
Public fieldAutoRegister
A value indicating whether to automatically register prefabs with ClientScene when pools are initialised by the manager.
Public fieldPoolManager
The GameObjectPoolManager responsible for managing the pools.
Top
See Also