Basics
Guides
API Reference
Basics
Guides
API Reference
[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.
KeepOnScreenComponent ()
Creates a new KeepOnScreenComponent.
adopt (object Ajo)
Wraps an existing KeepOnScreenComponent AussomJavaObject.

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