public class ModelLoader
GUI/GPU-independent model loader returning a ModelAsset for every format. Supported static subsets are documented by each codec; unsupported semantic features fail explicitly, never silently disappearing. Resources are resolved relative to the source file. Async loading runs on one CPU worker and exposes coalesced progress/cancellation, without invoking GUI callbacks. Example: asset = ModelLoader().load(FilePath("robot.glb"))
| Modifier and Type | Member | Description |
|---|---|---|
| public | loadload(path as FilePath, format as ModelFormat = null) as ModelAsset |
Loads a CPU asset; extension detection or explicit format. |
| public | loadAsyncloadAsync(path as FilePath, format as ModelFormat = null) as ModelLoadOperation |
Starts a CPU-only load; awaitResult returns the same ModelAsset contract. |
| public static | loadWithContextloadWithContext(path as FilePath, context as LoadContext, format as ModelFormat = null) as ModelAsset |
Internal codec dispatcher with cooperative progress/cancellation. |