Skip to main content

Component reference

Every component an object can carry, and every setting inside it. What these settings mean — and the ones that are easy to misread — is covered in Components.

39 components are available.

TypeSchemaFieldsField names
AnchorComponentvariant on type2type, …per variant
AudioComponentobject7audio, volume, play, loop, muted, positional, …
BoneComponentobject2index, inverse
CameraComponentvariant on projection2projection, …per variant
CameraViewComponentobject8target, x, y, width, height, size, …
ColliderComponentvariant on type2type, …per variant
DivkitComponentobject6referal, render, anchorX, anchorY, enabled, persistVariables
EventsComponentobject1events
ExtensionComponentobject1entries
GeometryComponentvariant on type2type, …per variant
InitialVelocityComponentobject2velocity, angularVelocity
InstancerComponentvariant on source2source, …per variant
LightComponentvariant on type2type, …per variant
LookAtComponentvariant on mode2mode, …per variant
MaterialComponentobject1materials
MetaComponentobject6name, type, sort, enabled, visible, isMain
ModelRefComponentobject8referal, clip, speed, repeatMode, repeatCount, startFrame, …
MorphComponentobject1weights
ParentComponentobject3parent, order, lock
ParticleEmitterComponentobject23emitting, count, lifetime, shape, radius, extents, …
PatchGraphComponentobject3signature, nodes, edges
PatchRefComponentobject2referal, inputs
PathComponentobject19points, closed, curve, tension, radius, radialSegments, …
PhysicsStateComponentobject4velocity, angularVelocity, speed, sleeping
PrefabComponentobject1resourceId
PrefabContentobject1rootId
RigidBodyComponentobject8type, mass, linearDamping, angularDamping, fixedRotation, friction, …
ScriptComponentobject3referal, enabled, props
ShaderGraphComponentobject5nodes, edges, output, order, source
ShadowComponentobject2castShadow, receiveShadow
SkeletonComponentobject0
SplatRefComponentobject1referal
StatesComponentobject2states, activeStateId
TagsComponentobject1tags
TemporalStateComponentobject2presets, activePresetId
Text3DComponentobject15text, font, fontWeight, fontSize, textAlign, verticalAlign, …
TextComponentobject10font, fontStyle, text, fontWeight, fontSize, width, …
TransformComponentobject4position, rotation, scale, lock
VideoComponentobject7video, volume, play, loop, muted, positional, …

Schemas in full

AnchorComponent

Tagged union on type — the fields depend on the tag.

type = image

FieldTypeNotes
isMainbool — booleanhas default
imageIdstring — stringhas default
physicalWidthf64 — numberhas default, min 0
physicalHeightf64 — numberhas default, min 0
showHintsbool — booleanhas default

type = qr

FieldTypeNotes
isMainbool — booleanhas default
textstring — stringhas default
imageIdstring — stringhas default
physicalSizef64 — numberhas default, min 0
showHintsbool — booleanhas default

type = geo

FieldTypeNotes
isMainbool — booleanhas default
latitudef64 — numberhas default, min -90, max 90
longitudef64 — numberhas default, min -180, max 180
showHintsbool — booleanhas default

type = face

FieldTypeNotes
isMainbool — booleanhas default
physicalSizef64 — numberhas default, min 0
anchorPointenum(nose | forehead | chin | leftEye | rightEye | leftEyebrow | rightEyebrow | leftEar | rightEar | noseBase | bottomLip | origin)has default
faceGridbool — booleanhas default
faceTextureIdstring — stringhas default
fillEyesbool — booleanhas default
fillMouthbool — booleanhas default
flipTexturebool — booleanhas default
showHintsbool — booleanhas default

type = surface

FieldTypeNotes
isMainbool — booleanhas default
bindingTypeenum(floor | wall | ceiling | table)has default
recognitionAlgorithmenum(plane_detection | hit_test)has default
providerIosenum(auto | webxr | 8thwall | arclip-webar)has default
providerAndroidenum(auto | webxr | 8thwall | arclip-webar)has default
vpsbool — booleanhas default
locationIdsarray — arrayhas default
showHintsbool — booleanhas default

type = panorama

FieldTypeNotes
isMainbool — booleanhas default
showHintsbool — booleanhas default

type = 3d

FieldTypeNotes
isMainbool — booleanhas default
cameraIdstring — stringhas default

AudioComponent

FieldTypeNotes
audiostring — stringnullable, has default
volumef64 — numberhas default
playbool — booleanhas default
loopbool — booleanhas default
mutedbool — booleanhas default
positionalbool — booleanhas default
positionf64 — numberhas default

BoneComponent

FieldTypeNotes
indexf64 — numberhas default
inversemat4number[16]has default

CameraComponent

Tagged union on projection — the fields depend on the tag.

projection = perspective

FieldTypeNotes
fovf64 — numberhas default, min 1, max 179
nearf64 — numberhas default, min 0.001
farf64 — numberhas default, min 0.01
controlsenum(none | orbit | fly | firstPerson | lock)has default
targetvec3{x, y, z}has default
enableDampingbool — booleanhas default
dampingFactorf64 — numberhas default, min 0, max 1
enableRotatebool — booleanhas default
enablePanbool — booleanhas default
enableZoombool — booleanhas default
minDistancef64 — numberhas default, min 0
maxDistancef64 — numberhas default, min 0
minPolarAnglef64 — numberhas default, min 0, max 3.141592653589793
maxPolarAnglef64 — numberhas default, min 0, max 3.141592653589793
autoRotatebool — booleanhas default
autoRotateSpeedf64 — numberhas default
moveSpeedf64 — numberhas default, min 0
boostf64 — numberhas default, min 1
lookSpeedf64 — numberhas default, min 0.05
moveForwardarray — arrayhas default
moveBackarray — arrayhas default
moveLeftarray — arrayhas default
moveRightarray — arrayhas default
moveUparray — arrayhas default
moveDownarray — arrayhas default
moveBoostarray — arrayhas default

CameraViewComponent

FieldTypeNotes
targetenum(screen | texture)has default
xf64 — numberhas default, min 0, max 1
yf64 — numberhas default, min 0, max 1
widthf64 — numberhas default, min 0, max 1
heightf64 — numberhas default, min 0, max 1
sizeu32 — numberhas default, min 16, max 4096
orderi32 — numberhas default
enabledbool — booleanhas default

ColliderComponent

Tagged union on type — the fields depend on the tag.

type = auto

FieldTypeNotes

type = box

FieldTypeNotes
halfExtentsvec3{x, y, z}has default

type = sphere

FieldTypeNotes
radiusf64 — numberhas default, min 0

type = cylinder

FieldTypeNotes
radiusTopf64 — numberhas default, min 0
radiusBottomf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
segmentsu32 — numberhas default, min 3, max 64

type = capsule

FieldTypeNotes
radiusf64 — numberhas default, min 0
heightf64 — numberhas default, min 0

type = plane

FieldTypeNotes

DivkitComponent

FieldTypeNotes
referalstring — stringnullable, has default
renderenum(overlay | anchored)has default
anchorXenum(left | center | right)has default
anchorYenum(top | center | bottom)has default
enabledbool — booleanhas default
persistVariablesbool — booleanhas default

EventsComponent

FieldTypeNotes
eventsarray — arrayhas default

ExtensionComponent

FieldTypeNotes
entriesrecord — maphas default

GeometryComponent

Tagged union on type — the fields depend on the tag.

type = box

FieldTypeNotes
widthf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
depthf64 — numberhas default, min 0
widthSegmentsu32 — numberhas default, min 1, max 100
heightSegmentsu32 — numberhas default, min 1, max 100
depthSegmentsu32 — numberhas default, min 1, max 100
cornerRadiusf64 — numberhas default, min 0
cornerSegmentsu32 — numberhas default, min 1, max 10

type = sphere

FieldTypeNotes
radiusf64 — numberhas default, min 0
widthSegmentsu32 — numberhas default, min 3, max 256
heightSegmentsu32 — numberhas default, min 2, max 256
phiStartf64 — numberhas default
phiLengthf64 — numberhas default
thetaStartf64 — numberhas default, min 0, max 6.283185307179586
thetaLengthf64 — numberhas default, min 0, max 6.283185307179586

type = cylinder

FieldTypeNotes
radiusTopf64 — numberhas default, min 0
radiusBottomf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
radialSegmentsu32 — numberhas default, min 3, max 256
heightSegmentsu32 — numberhas default, min 1, max 100
openEndedbool — booleanhas default
thetaStartf64 — numberhas default, min 0, max 6.283185307179586
thetaLengthf64 — numberhas default, min 0, max 6.283185307179586

type = capsule

FieldTypeNotes
radiusf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
capSegmentsu32 — numberhas default, min 1, max 32
radialSegmentsu32 — numberhas default, min 3, max 128
heightSegmentsu32 — numberhas default, min 1, max 100

type = circle

FieldTypeNotes
radiusf64 — numberhas default, min 0
segmentsu32 — numberhas default, min 3, max 256
thetaStartf64 — numberhas default, min 0, max 6.283185307179586
thetaLengthf64 — numberhas default, min 0, max 6.283185307179586

type = cone

FieldTypeNotes
radiusf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
radialSegmentsu32 — numberhas default, min 3, max 256
heightSegmentsu32 — numberhas default, min 1, max 100
openEndedbool — booleanhas default
thetaStartf64 — numberhas default, min 0, max 6.283185307179586
thetaLengthf64 — numberhas default, min 0, max 6.283185307179586

type = dodecahedron

FieldTypeNotes
radiusf64 — numberhas default, min 0
detailu32 — numberhas default, max 5

type = icosahed

FieldTypeNotes
radiusf64 — numberhas default, min 0
detailu32 — numberhas default, max 5

type = octahedron

FieldTypeNotes
radiusf64 — numberhas default, min 0
detailu32 — numberhas default, max 5

type = plane

FieldTypeNotes
widthf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
widthSegmentsu32 — numberhas default, min 1, max 100
heightSegmentsu32 — numberhas default, min 1, max 100

type = triangle

FieldTypeNotes
widthf64 — numberhas default, min 0
heightf64 — numberhas default, min 0
widthSegmentsu32 — numberhas default, min 1, max 100
heightSegmentsu32 — numberhas default, min 1, max 100

type = ring

FieldTypeNotes
innerRadiusf64 — numberhas default, min 0
outerRadiusf64 — numberhas default, min 0
thetaSegmentsu32 — numberhas default, min 3, max 256
phiSegmentsu32 — numberhas default, min 1, max 32
thetaStartf64 — numberhas default, min 0, max 6.283185307179586
thetaLengthf64 — numberhas default, min 0, max 6.283185307179586

type = torus

FieldTypeNotes
radiusf64 — numberhas default
tubef64 — numberhas default
radialSegmentsu32 — numberhas default, min 1, max 128
tubularSegmentsu32 — numberhas default, min 3, max 256
arcf64 — numberhas default, min 0, max 6.283185307179586

type = extrude

FieldTypeNotes
pointsarray — arrayhas default
depthf64 — numberhas default, min 0
bevelEnabledbool — booleanhas default
bevelThicknessf64 — numberhas default, min 0
bevelSizef64 — numberhas default, min 0
bevelSegmentsu32 — numberhas default, min 1, max 16

type = lathe

FieldTypeNotes
pointsarray — arrayhas default
segmentsu32 — numberhas default, min 3, max 256
phiStartf64 — numberhas default, min 0, max 6.283185307179586
phiLengthf64 — numberhas default, min 0, max 6.283185307179586

type = ref

FieldTypeNotes
referalstring — stringnullable, has default

InitialVelocityComponent

FieldTypeNotes
velocityvec3{x, y, z}has default
angularVelocityvec3{x, y, z}has default

InstancerComponent

Tagged union on source — the fields depend on the tag.

source = grid

FieldTypeNotes
maxCountu32 — numberhas default, min 1, max 100000
seedu32 — numberhas default
scaleMinf64 — numberhas default, min 0
scaleMaxf64 — numberhas default, min 0
rotationJittervec3{x, y, z}has default
colorAcolor — hex colour stringhas default
colorBcolor — hex colour stringhas default
countXu32 — numberhas default, min 1, max 1000
countYu32 — numberhas default, min 1, max 1000
countZu32 — numberhas default, min 1, max 1000
spacingvec3{x, y, z}has default
jitterf64 — numberhas default, min 0, max 1

source = scatter

FieldTypeNotes
maxCountu32 — numberhas default, min 1, max 100000
seedu32 — numberhas default
scaleMinf64 — numberhas default, min 0
scaleMaxf64 — numberhas default, min 0
rotationJittervec3{x, y, z}has default
colorAcolor — hex colour stringhas default
colorBcolor — hex colour stringhas default
countu32 — numberhas default, min 1, max 100000
shapeenum(box | sphere)has default
extentsvec3{x, y, z}has default

source = children

FieldTypeNotes
maxCountu32 — numberhas default, min 1, max 100000
seedu32 — numberhas default
scaleMinf64 — numberhas default, min 0
scaleMaxf64 — numberhas default, min 0
rotationJittervec3{x, y, z}has default
colorAcolor — hex colour stringhas default
colorBcolor — hex colour stringhas default

LightComponent

Tagged union on type — the fields depend on the tag.

type = ambient

FieldTypeNotes
colorcolor — hex colour stringhas default
intensityf64 — numberhas default, min 0
castShadowbool — booleanhas default
visiblebool — booleanhas default

type = directional

FieldTypeNotes
colorcolor — hex colour stringhas default
intensityf64 — numberhas default, min 0
castShadowbool — booleanhas default
visiblebool — booleanhas default

type = point

FieldTypeNotes
colorcolor — hex colour stringhas default
intensityf64 — numberhas default, min 0
castShadowbool — booleanhas default
visiblebool — booleanhas default
distancef64 — numberhas default, min 0
decayf64 — numberhas default, min 0

type = spot

FieldTypeNotes
colorcolor — hex colour stringhas default
intensityf64 — numberhas default, min 0
castShadowbool — booleanhas default
visiblebool — booleanhas default
distancef64 — numberhas default, min 0
decayf64 — numberhas default, min 0
anglef64 — numberhas default, min 0, max 1.5707963267948966
penumbraf64 — numberhas default, min 0, max 1

type = hemisphere

FieldTypeNotes
colorcolor — hex colour stringhas default
intensityf64 — numberhas default, min 0
castShadowbool — booleanhas default
visiblebool — booleanhas default
groundColorcolor — hex colour stringhas default

LookAtComponent

Tagged union on mode — the fields depend on the tag.

mode = world

FieldTypeNotes
targetvec3{x, y, z}has default

mode = self

FieldTypeNotes
offsetvec3{x, y, z}has default

MaterialComponent

FieldTypeNotes
materialsarray — arrayhas default, min 1

MetaComponent

FieldTypeNotes
namestring — stringhas default
typeenum(object | model | plain | box | light)has default
sortf64 — numberhas default
enabledbool — booleanhas default
visiblebool — booleanhas default
isMainbool — booleanhas default

ModelRefComponent

FieldTypeNotes
referalstring — stringnullable, has default
clipstring — stringnullable, has default
speedf64 — numberhas default
repeatModeenum(none | count | permanent)has default
repeatCountf64 — numberhas default, integer, min 1
startFramef64 — numberhas default, integer, min 0
stopWhenPressedbool — booleanhas default
playingbool — booleanhas default

MorphComponent

FieldTypeNotes
weightsrecord — maphas default

ParentComponent

FieldTypeNotes
parentstring — stringnullable, has default
orderf64 — numbernullable, has default
lockbool — booleanhas default

ParticleEmitterComponent

FieldTypeNotes
emittingbool — booleanhas default
countu32 — numberhas default, min 1, max 65536
lifetimef64 — numberhas default, min 0.05
shapeenum(point | sphere | box | cone)has default
radiusf64 — numberhas default, min 0
extentsvec3{x, y, z}has default
anglef64 — numberhas default, min 0, max 180
speedMinf64 — numberhas default, min 0
speedMaxf64 — numberhas default, min 0
gravityvec3{x, y, z}has default
dragf64 — numberhas default, min 0
turbulencef64 — numberhas default, min 0
sizeStartf64 — numberhas default, min 0
sizeEndf64 — numberhas default, min 0
sizeJitterf64 — numberhas default, min 0, max 1
spinf64 — numberhas default
colorStartcolor — hex colour stringhas default
colorEndcolor — hex colour stringhas default
opacityStartf64 — numberhas default, min 0, max 1
opacityEndf64 — numberhas default, min 0, max 1
spritestring — stringnullable, has default
blendingenum(additive | normal)has default
seedu32 — numberhas default

PatchGraphComponent

FieldTypeNotes
signatureobject — nested objecthas default
nodesarray — arrayhas default
edgesarray — arrayhas default

PatchRefComponent

FieldTypeNotes
referalstring — stringnullable, has default
inputsrecord — maphas default

PathComponent

FieldTypeNotes
pointsarray — arrayhas default
closedbool — booleanhas default
curveenum(smooth | linear)has default
tensionf64 — numberhas default, min 0, max 1
radiusf64 — numberhas default, min 0, max 10
radialSegmentsu32 — numberhas default, min 3, max 64
tubularSegmentsu32 — numberhas default, min 4, max 1024
profileenum(none | circle | rectangle | star)has default
profileSizevec2{x, y}has default
ringf64 — numberhas default, min 0, max 1
arcf64 — numberhas default, min 0, max 360
sidesu32 — numberhas default, min 3, max 64
depthf64 — numberhas default, min 0, max 1
offsetf64 — numberhas default, min 0, max 1
rotationf64 — numberhas default, min -360, max 360
twistf64 — numberhas default, min -3600, max 3600
startScalef64 — numberhas default, min 0, max 10
endScalef64 — numberhas default, min 0, max 10
capsenum(flat | round)has default

PhysicsStateComponent

FieldTypeNotes
velocityvec3{x, y, z}has default
angularVelocityvec3{x, y, z}has default
speedf64 — numberhas default
sleepingbool — booleanhas default

PrefabComponent

FieldTypeNotes
resourceIdstring — stringnullable, has default

PrefabContent

FieldTypeNotes
rootIdstring — stringrequired

RigidBodyComponent

FieldTypeNotes
typeenum(dynamic | static | kinematic | none)has default
massf64 — numberhas default, min 0
linearDampingf64 — numberhas default, min 0, max 1
angularDampingf64 — numberhas default, min 0, max 1
fixedRotationbool — booleanhas default
frictionf64 — numbernullable, has default, min 0
restitutionf64 — numbernullable, has default, min 0, max 1
networkenum(shared | local)has default

ScriptComponent

FieldTypeNotes
referalstring — stringnullable, has default
enabledbool — booleanhas default
propsrecord — maphas default

ShaderGraphComponent

FieldTypeNotes
nodesarray — arrayhas default
edgesarray — arrayhas default
outputstring — stringhas default
orderf64 — numberhas default, integer
sourcestring — stringhas default

ShadowComponent

FieldTypeNotes
castShadowbool — booleanhas default
receiveShadowbool — booleanhas default

SkeletonComponent

FieldTypeNotes

SplatRefComponent

FieldTypeNotes
referalstring — stringnullable, has default

StatesComponent

FieldTypeNotes
statesarray — arrayhas default
activeStateIdstring — stringnullable, has default

TagsComponent

FieldTypeNotes
tagsrecord — maprequired

TemporalStateComponent

FieldTypeNotes
presetsarray — arrayhas default
activePresetIdstring — stringnullable, has default

Text3DComponent

FieldTypeNotes
textstring — stringhas default
fontstring — stringnullable, has default
fontWeightenum(normal | bold)has default
fontSizef64 — numberhas default
textAlignenum(left | center | right)has default
verticalAlignenum(top | middle | bottom)has default
lineHeightf64 — numberhas default, min 0.1, max 5
letterSpacingf64 — numberhas default, min -0.5, max 2
curveSegmentsu32 — numberhas default, min 1, max 32
depthf64 — numberhas default, min 0, max 5
bevelEnabledbool — booleanhas default
bevelThicknessf64 — numberhas default, min 0, max 1
bevelSizef64 — numberhas default, min 0, max 1
bevelSegmentsu32 — numberhas default, min 1, max 16
colorunion — unionhas default

TextComponent

FieldTypeNotes
fontstring — stringnullable, has default
fontStyleenum(normal | italic)has default
textstring — stringhas default
fontWeightenum(normal | bold)has default
fontSizef64 — numberhas default
widthf64 — numbernullable, has default
heightf64 — numbernullable, has default
textAlignenum(left | center | right | justify)has default
verticalAlignenum(top | middle | bottom)has default
colorunion — unionhas default

TransformComponent

FieldTypeNotes
positionvec3{x, y, z}has default
rotationvec3{x, y, z}has default
scalevec3{x, y, z}has default
lockbool — booleanhas default

VideoComponent

FieldTypeNotes
videostring — stringnullable, has default
volumef64 — numberhas default
playbool — booleanhas default
loopbool — booleanhas default
mutedbool — booleanhas default
positionalbool — booleanhas default
positionf64 — numberhas default