Basics
Guides
API Reference
Basics
Guides
API Reference
[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()).
OffscreenCleanComponent ()
Creates a new OffscreenCleanComponent.
adopt (object Ajo)
Wraps an existing OffscreenCleanComponent AussomJavaObject.
getViewport ()
Returns the Viewport AJO this component watches.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.