IAssets Type
Per-game asset loader/cache service for the raylib backend.
Provides cached loading for textures, fonts, sounds, models, and shaders from loose files (no content pipeline). Extends IAssetCache so portable code can cache custom assets without referencing a backend.
Example
let assets = GameContext.getService<IAssets> ctx
let tex = assets.Texture "sprites/player.png"
let font = assets.Font "fonts/main.ttf"
let config = assets.GetOrCreate "gameConfig" (fun () -> loadConfig())
val assets: obj
val tex: obj
val font: obj
val config: obj
Instance members
| Instance member |
Description
|
|
|
Full Usage:
this.ModelAnimations
Parameters:
string
Returns: ModelAnimation[]
Modifiers: abstract |
Loads and caches ModelAnimation Loads all skeletal animations from a model file (glb/gltf/iqm). Returns an empty array if the model has no animations.
|
|
|
|
Mibo