Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

AvatarPreviewState

Defined in: client/api.d.ts:7161

What an AvatarPreview is showing now.

backdrop: boolean

Defined in: client/api.d.ts:7195

Whether the slab is up.


backend: "world" | "texture"

Defined in: client/api.d.ts:7180

The backend in use.


debug: object

Defined in: client/api.d.ts:7220

Diagnostic: where the engine projects the framing point, the slab and the figure’s bounds, in screen pixels, the FOV each projection axis spans, and whether a clip with an asset is playing (false: the reference pose or the AnimBlueprint, both an A-pose). match: the slab’s emissive now, its gain over the target, the patches sampled and their spread in sRGB steps, the figure’s torso luma, and the sampling’s cost in microseconds.

animating: boolean

distance: number

figure: { h: number; w: number; x: number; y: number; } | null

focus: { x: number; y: number; } | null

fov: number

fovX: number

fovY: number

match: object

emissive: number[] | null

emissiveBottom: number[] | null

figureLuma: number | null

frames: number

gain: number

patches: number

presentMaxUs: number

presentUs: number

readMaxUs: number

readUs: number

spread: number

slab: { h: number; w: number; x: number; y: number; } | null


hold: "none" | "isolate"

Defined in: client/api.d.ts:7200

What the main view is giving up for this avatar preview right now.


isolation: "direct" | "full"

Defined in: client/api.d.ts:7185

“direct”: the world backend keeps only direct light off the figure; sky light and probe GI still reach it.


match: object

Defined in: client/api.d.ts:7210

backdrop.match’s progress. Colors are [r, g, b] in 0-255 sRGB steps, as CSS writes them: sampled is the slab’s edge band on screen (a gradient’s top; sampledBottom its bottom), error the worst channel’s distance from target. The figure is revealed once converged. unsupported: an HDR display, where the color is used as an emissive, as without match; reason says why.

colorSpace: "unknown" | "srgb" | "hdr10" | "scrgb"

convergedAfter: number | null

error: number | null

reason: string

sampled: number[] | null

sampledBottom: number[] | null

status: "off" | "waiting" | "converging" | "converged" | "unsupported"

steps: number

target: number[] | null

targetBottom: number[] | null


ok: boolean

Defined in: client/api.d.ts:7165

Whether the id is live. A replaced, destroyed or ended one says why in status.


ready: boolean

Defined in: client/api.d.ts:7170

Whether the figure is spawned; a spawn takes a few frames and needs a pawn.


rect: { h: number; w: number; x: number; y: number; } | null

Defined in: client/api.d.ts:7190

Where the anchor resolved to, in screen pixels; null while not visible.


status: string

Defined in: client/api.d.ts:7215

Last failure or note, consumed on read. state(0) says why the last create returned 0.


visible: boolean

Defined in: client/api.d.ts:7175

Whether the figure is on screen: revealed, and its rect visible.


worldLitMeshes: number

Defined in: client/api.d.ts:7205

Diagnostic: figure meshes still on the sun’s lighting channel; 0 while the rig alone lights it.