Click or drag to resize

PoolableGameObject Class

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

A component that will automatically be attached to an instance of a pooled object, to provide notifications when the object is acquired from, or released to, the pool.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Umbrace.Unity.PurePoolPoolableObjectGameObject
            Umbrace.Unity.PurePoolPoolableGameObject

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
[DisallowMultipleComponent]
public class PoolableGameObject : PoolableObject<GameObject>

The PoolableGameObject type exposes the following members.

Constructors
  NameDescription
Public methodPoolableGameObject
Initializes a new instance of the PoolableGameObject class
Top
Properties
Methods
  NameDescription
Public methodAddToCache(Component)
Adds a poolable component to the cache.
(Inherited from PoolableObjectT.)
Public methodAddToCache(IPoolable)
Adds a poolable component to the cache.
(Inherited from PoolableObjectT.)
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 methodOnAcquire
Informs all poolable components that the object has been acquired from the pool.
(Inherited from PoolableObjectT.)
Public methodOnRelease
Informs all poolable components that the object has been released back to the pool.
(Inherited from PoolableObjectT.)
Public methodRefreshCache
Refreshes the cache of poolable components.
(Inherited from PoolableObjectT.)
Public methodRemoveFromCache(Component)
Removes a poolable component from the cache.
(Inherited from PoolableObjectT.)
Public methodRemoveFromCache(IPoolable)
Removes a poolable component from the cache.
(Inherited from PoolableObjectT.)
Public methodToString (Inherited from Object.)
Top
Events
See Also