Resource API

ResourceContext gives scripts read-mostly access to loaded resources and render/audio queues without taking a mutable runtime borrow.

Audio

Audio helpers load, reserve, play, stop, trim, query length, and control master or bus volume/speed.

Textures

Texture helpers load, reserve, and drop texture sources while returning stable TextureID handles.

Meshes

Mesh helpers load, reserve, and drop mesh sources, including glTF/glb sub-assets by mesh index.

Materials

Material helpers load source-backed materials or create runtime Material3D data directly.

Skeletons

Skeleton helpers load Bone3D data from .pskel files or glTF skeleton sub-assets.

Localization

Localization helpers select the active locale and resolve localized text from resource data.

Draw 2D

Draw 2D helpers submit immediate 2D drawing through ResourceContext for simple debug or gameplay visuals.

Animation Clips

Animation resource helpers load .panim clips into IDs that AnimationPlayer nodes can play.