Basics
Guides
API Reference
Basics
Guides
API Reference
[21:7] extends: EngineService
Wraps FXGL's abstract AssetLoaderService base (com.almasb.fxgl.core.asset.AssetLoaderService), the EngineService contract every asset-loader implementation extends. Exposes the generic load methods plus the URL resolver. The concrete in-engine implementation is FXGLAssetLoaderService -- prefer that wrapper for asset loading. Aussom users hold an AssetLoaderService wrapper via adopt after obtaining the running implementation; direct construction is not supported because the class is abstract.
AssetLoaderService ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing AssetLoaderService AussomJavaObject.
Ajo is an AussomJavaObject around an AssetLoaderService.A new wrapper.load (string AssetTypeName, string FileName)
Loads an asset of the named AssetType from the given file name (relative to the asset type's directory). Returns the loaded object as an AussomJavaObject; cast on the caller side based on the AssetType.
AssetTypeName is the AssetType enum name (e.g. "IMAGE", "SOUND", "MUSIC", "TEXT", "MODEL3D").FileName is the file name relative to the type's dir.An AussomJavaObject around the loaded asset.loadFromUrl (string AssetTypeName, string UrlString)
Loads an asset of the named AssetType from the given URL string.
AssetTypeName is the AssetType enum name.UrlString is the URL string.An AussomJavaObject around the loaded asset.getURL (string Name)
Returns a URL to a named asset. Name must be relative to the resource root and start with "/" (e.g. "/assets/textures/player.png"). Returns the engine's NULL_URL sentinel if the asset is not found.
Name is the resource path starting with "/".An AussomJavaObject around a java.net.URL.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.