Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: FxglSubScene
Wraps FXGL's GameSubScene (com.almasb.fxgl.app.scene.GameSubScene), a SubScene that hosts its own GameScene (with a dedicated GameWorld and PhysicsWorld). Useful for split-screen, picture-in-picture, or nested game views distinct from the primary GameScene. Construction needs the SceneService's pixelsPerMeter, so it can only be instantiated inside a running FXGL engine.
GameSubScene (Width = null, int Height = 0, bool Is3D = false)
Creates a new GameSubScene of the given size. Pass null for Width to construct an empty wrapper for adopt.
Width is the sub-scene width in pixels, or null.Height is the sub-scene height in pixels.Is3D is true for a 3D game scene, false for 2D.adopt (object Ajo)
Wraps an existing GameSubScene AussomJavaObject.
Ajo is an AussomJavaObject around a GameSubScene.A new wrapper.getGameScene ()
Returns the inner GameScene that drives the sub-scene.
An AussomJavaObject around a GameScene.getGameWorld ()
Returns the inner GameWorld.
An AussomJavaObject around a GameWorld.getPhysicsWorld ()
Returns the inner PhysicsWorld.
An AussomJavaObject around a PhysicsWorld.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.