Skip to main content

ObjectPool

Complete API reference for ObjectPool, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: ObjectPool

Component: yes


public class ObjectPool extends Component

Constructors

SignatureDescription
ObjectPool(ObjectPool)Executes ObjectPool and returns after the underlying engine call finishes.

Attributes

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

Methods

SignatureReturnsDescription
add(Vector3)ObjectPool.ObjectAdds an HPO at the specified position and returns its index.
objectCount()intReturns the count of objects in the current HPOP.
getObject(int)ObjectPool.ObjectExecutes getObject and returns after the underlying engine call finishes.
notifyObjectChanged(ObjectPool.Object)voidUpdates the object.
delete(List<SearchResult>)voidDeletes multiple HPOs based on the provided search results.
delete(ObjectPool.Object)voidDeletes the HPO at the specified index.
findInCircle(Vector3, float)List<SearchResult>Finds and returns all objects within a specified circle defined by center and radius.
findInSphere(Vector3, float)List<SearchResult>Finds and returns all objects within a specified sphere defined by center and radius.
findInSquare(Vector2, Vector2)List<SearchResult>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()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.