file: OffscreenInvisibleComponent.aus

class: OffscreenInvisibleComponent

[18:7] extends: Component

Wraps FXGL's OffscreenInvisibleComponent (com.almasb.fxgl.dsl.components.OffscreenInvisibleComponent). Hides the entity when its bounding box leaves the viewport's visible area and re-shows it when it comes back. The entity is not removed; only its visibility toggles. Must be constructed inside a running FXGL game.

Methods