Click or drag to resize
EntityObjectPool Class
Pool of game objects for entities. Manages the allocation and destruction of the entity objects.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Slash.Unity.Common.ECSEntityObjectPool

Namespace: Slash.Unity.Common.ECS
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public class EntityObjectPool : MonoBehaviour

The EntityObjectPool type exposes the following members.

Constructors
  NameDescription
Public methodEntityObjectPool
Initializes a new instance of the EntityObjectPool class
Top
Methods
  NameDescription
Public methodAlloc
Public methodFree
Public methodSetMaxCapacity
Changes the maximum capacity of this pool. If the maximum capacity is increased, an amount of objects equal to the capacity difference is added to the pool. If the maximum capacity is decreased, an amount of objets equal to the capacity difference is removed from the pool of available objects.
Top
Fields
  NameDescription
Public fieldentityPrefab
Prefab to visualize an entity with.
Public fieldinitialCapacity
Initial capacity of pool. This many entity objects are created on startup.
Public fieldmaxCapacity
Maximum capacity of pool.
Top
See Also