file: OffscreenCleanComponent.aus

class: OffscreenCleanComponent

[19:7] extends: Component

Wraps FXGL's OffscreenCleanComponent (com.almasb.fxgl.dsl.components.OffscreenCleanComponent). Removes the entity from the world the moment its bounding box leaves the viewport's visible area. Uses the running game scene's viewport by default. Must be constructed inside a running FXGL game (the default constructor calls FXGL.getGameScene()).

Methods