AvatarPreviewState
Defined in: client/api.d.ts:7161
What an AvatarPreview is showing now.
Properties
Section titled “Properties”backdrop
Section titled “backdrop”backdrop:
boolean
Defined in: client/api.d.ts:7195
Whether the slab is up.
backend
Section titled “backend”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
Section titled “animating”animating:
boolean
distance
Section titled “distance”distance:
number
figure
Section titled “figure”figure: {
h:number;w:number;x:number;y:number; } |null
focus: {
x:number;y:number; } |null
fov:
number
fovX:
number
fovY:
number
match:
object
match.emissive
Section titled “match.emissive”emissive:
number[] |null
match.emissiveBottom
Section titled “match.emissiveBottom”emissiveBottom:
number[] |null
match.figureLuma
Section titled “match.figureLuma”figureLuma:
number|null
match.frames
Section titled “match.frames”frames:
number
match.gain
Section titled “match.gain”gain:
number
match.patches
Section titled “match.patches”patches:
number
match.presentMaxUs
Section titled “match.presentMaxUs”presentMaxUs:
number
match.presentUs
Section titled “match.presentUs”presentUs:
number
match.readMaxUs
Section titled “match.readMaxUs”readMaxUs:
number
match.readUs
Section titled “match.readUs”readUs:
number
match.spread
Section titled “match.spread”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
Section titled “isolation”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
Section titled “colorSpace”colorSpace:
"unknown"|"srgb"|"hdr10"|"scrgb"
convergedAfter
Section titled “convergedAfter”convergedAfter:
number|null
error:
number|null
reason
Section titled “reason”reason:
string
sampled
Section titled “sampled”sampled:
number[] |null
sampledBottom
Section titled “sampledBottom”sampledBottom:
number[] |null
status
Section titled “status”status:
"off"|"waiting"|"converging"|"converged"|"unsupported"
steps:
number
target
Section titled “target”target:
number[] |null
targetBottom
Section titled “targetBottom”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
Section titled “status”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
Section titled “visible”visible:
boolean
Defined in: client/api.d.ts:7175
Whether the figure is on screen: revealed, and its rect visible.
worldLitMeshes
Section titled “worldLitMeshes”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.