Skip to content

Overview

The Plume3D API is exposed to game scripts via Wren. All classes and methods described here are available in your game’s Wren code.

Each reference page includes return types, parameter types, descriptions, and code examples where applicable. Documented types (e.g. Num, String, Bool, List, Map, or class names like Mesh, Source) indicate the expected or returned values.

ModuleDescription
EngineEngine identity, version, and screenshot
LoggerLogging (info, warn, error, dump)
ShaderShader resource (name)
MeshVertex buffers, draw modes, and rendering
ModuleDescription
InputMouse, keyboard, modifiers, gamepads
WindowSize, fullscreen, title, design size, scale mode
ModuleDescription
GraphicsLoad shaders, create meshes, draw, view/projection matrices
GuiImmediate-mode GUI (windows, layout, labels, buttons, edit)
ModuleDescription
AudioGlobal audio state, volume, listener position/orientation
SourcePer-source playback, volume, pitch, 3D position, cone, attenuation
ModuleDescription
SceneScene graph root, add nodes/cameras/lights, draw
NodeTransform hierarchy, position/rotation/scale, children, tags
CameraView/projection, FOV, planes, world/screen conversion
LightPoint, Sun, Spot, Hemi, Area; color, energy, spot/area params
RaycastRaycasts from point, camera, or node direction; RaycastHit
ModuleDescription
ConfigLoad TOML from mounted paths
ResourceCached loading (config, blend, sound)
BlendResultResult of Resource.loadBlend; classes, configs, instantiate, node custom data
ModuleDescription
AnimationStatePer-clip state, time, params, play/pause, events
AnimationEventNamed events and callbacks
AnimationPlayOptionsReverse, time offset, speed
AnimationBlendOptionsBlend options (reserved)
ModuleDescription
MathTrig, rounding, sqrt, pow, min/max, constants (pi, e)