file: KeepOnScreenComponent.aus

class: KeepOnScreenComponent

[17:7] extends: KeepInBoundsComponent

Wraps FXGL's KeepOnScreenComponent (com.almasb.fxgl.dsl.components.KeepOnScreenComponent), a KeepInBoundsComponent subclass that uses the running game scene's viewport visible area as the bounds rectangle. Do not use if the viewport is bound to an entity. Must be constructed inside a running FXGL game.

Methods