Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: EngineService
Wraps FXGL's SceneService, the engine service that exposes the active scene stack plus scene-related globals (input, timer, event bus, overlay root, preferred width/height). Reached at runtime via fxgl.getSceneService (chunk 6); obtain a wrapper via adopt.
SceneService (Ajo = null)
Creates a SceneService wrapper. Empty by default; the (Ajo) form wraps an existing instance from fxgl.getSceneService.
Ajo is an optional AussomJavaObject around a SceneService.adopt (object Ajo)
Wraps an existing SceneService AussomJavaObject.
Ajo is an AussomJavaObject around a SceneService.A new wrapper.getCurrentScene ()
Returns the topmost active scene (or subscene).
A Scene wrapper.pushSubScene (object SubSceneObj)
Pushes a SubScene onto the scene stack. The current scene keeps rendering underneath; input goes to the new top.
SubSceneObj is an FxglSubScene wrapper.this objectpopSubScene ()
Pops the topmost SubScene off the stack.
this objectgetPrefWidth ()
Returns the preferred scene width.
A double.getPrefHeight ()
Returns the preferred scene height.
A double.getOverlayRoot ()
Returns the overlay Group that is always on top of every other UI element (used for notifications).
An AussomJavaObject around a javafx.scene.Group._optScene (rawAjo)
prefWidthProperty ()
Returns the preferred width as a ReadOnlyDoubleProperty for binding HUD layouts to a resizable game.
An AussomJavaObject around a ReadOnlyDoubleProperty.prefHeightProperty ()
Returns the preferred height as a ReadOnlyDoubleProperty.
An AussomJavaObject around a ReadOnlyDoubleProperty.getEventBus ()
Returns the always-on EventBus shared across every scene.
An AussomJavaObject around an EventBus.getInput ()
Returns the always-on Input service. Distinct from a scene's local input -- this one stays active across scene transitions.
An AussomJavaObject around an Input.getTimer ()
Returns the always-on Timer (does not pause with the game).
An AussomJavaObject around a Timer.getIntroScene ()
Returns the intro Scene as an AussomJavaObject, or null when no intro scene is registered.
An AussomJavaObject around a Scene, or null.getLoadingScene ()
Returns the loading Scene, or null.
An AussomJavaObject around a Scene, or null.getGameScene ()
Returns the game Scene, or null.
An AussomJavaObject around a Scene, or null.getMainMenuScene ()
Returns the main-menu Scene, or null.
An AussomJavaObject around a Scene, or null.getGameMenuScene ()
Returns the in-game menu Scene, or null.
An AussomJavaObject around a Scene, or null.isInHierarchy (object SceneObj)
Returns whether the given Scene is currently in the active scene-stack hierarchy.
SceneObj is a Scene wrapper.A bool.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.