![]() | EntityObjectPool Class |
Namespace: Slash.Unity.Common.ECS
The EntityObjectPool type exposes the following members.
Name | Description | |
---|---|---|
![]() | EntityObjectPool | Initializes a new instance of the EntityObjectPool class |
Name | Description | |
---|---|---|
![]() | Alloc | |
![]() | Free | |
![]() | SetMaxCapacity |
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.
|
Name | Description | |
---|---|---|
![]() | entityPrefab |
Prefab to visualize an entity with.
|
![]() | initialCapacity |
Initial capacity of pool. This many entity objects are created on startup.
|
![]() | maxCapacity |
Maximum capacity of pool.
|