PoolComponent
Complete API reference for PoolComponent, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: ObjectPool
Component: yes
public class PoolComponent extends Component
Constructors
| Signature | Description |
|---|---|
PoolComponent(BasePool) | Creates a new instance of PoolComponent. |
PoolComponent() | Creates a new instance of PoolComponent. |
Attributes
| Name | Type | Description |
|---|---|---|
instance | BasePool | Represents the instance value stored on this instance. Read or assign to update the property. |
Methods
| Signature | Returns | Description |
|---|---|---|
add(Vector3) | PooledObject | Adds an HPO at the specified position and returns its index. |
objectCount() | int | Returns the count of objects in the current HPOP. |
getObject(int) | PooledObject | Returns the current object. |
notifyObjectChanged(PooledObject) | void | Updates the object. |
delete(List<PoolSearchResult>) | void | Deletes multiple HPOs based on the provided search results. |
delete(PooledObject) | void | Deletes the HPO at the specified index. |
findInCircle(Vector3, float) | List<PoolSearchResult> | Finds and returns all objects within a specified circle defined by center and radius. |
findInSphere(Vector3, float) | List<PoolSearchResult> | Finds and returns all objects within a specified sphere defined by center and radius. |
findInSquare(Vector2, Vector2) | List<PoolSearchResult> | Finds and returns all objects within a rectangular area defined by two corners: min and max. |
componentClassMatch(Component, Component) | boolean | Executes componentClassMatch and returns after the underlying engine call finishes. |
getEngineComponent() | Component | Returns the current engine component. |