Skip to main content

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

SignatureDescription
PoolComponent(BasePool)Creates a new instance of PoolComponent.
PoolComponent()Creates a new instance of PoolComponent.

Attributes

NameTypeDescription
instanceBasePoolRepresents the instance value stored on this instance. Read or assign to update the property.

Methods

SignatureReturnsDescription
add(Vector3)PooledObjectAdds an HPO at the specified position and returns its index.
objectCount()intReturns the count of objects in the current HPOP.
getObject(int)PooledObjectReturns the current object.
notifyObjectChanged(PooledObject)voidUpdates the object.
delete(List<PoolSearchResult>)voidDeletes multiple HPOs based on the provided search results.
delete(PooledObject)voidDeletes 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)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentReturns the current engine component.