file: ExpireCleanComponent.aus

class: ExpireCleanComponent

[17:7] extends: Component

Wraps FXGL's ExpireCleanComponent (com.almasb.fxgl.dsl.components.ExpireCleanComponent). The entity is removed from the world after the configured duration (timer starts when the component's entity is attached to the world). Useful for short-lived effects and projectiles.

Methods