JavaScript API Reference

Reference pages for Wonderland Engine’s JavaScript API classes, namespaces and enums.

Custom Components 

You can kick-start your component by creating it through the “Asset Browser”: right-click on free space in the files area.

Make sure to register your component with WL.registerComponent.

To make the component appear in the editor, add the script or folder to the list in “Project Settings”.

See also the JavaScript Quick Start Guide.

API 

Animation

Animation API reference

AnimationComponent

AnimationComponent API reference

BitSet

BitSet API reference

BrokenComponent

BrokenComponent API reference

CollisionComponent

CollisionComponent API reference

Component

Component API reference

DefaultPropertyCloner

DefaultPropertyCloner API reference

Emitter

Emitter API reference

Environment

Environment API reference

Font

Font API reference

GLTFExtensions

GLTFExtensions API reference

I18N

I18N API reference

InputComponent

InputComponent API reference

Interfaces

Interfaces API reference

LightComponent

LightComponent API reference

Logger

Logger API reference

Material

Material API reference

MaterialManager

MaterialManager API reference

math

math API reference

Mesh

Mesh API reference

MeshAttributeAccessor

MeshAttributeAccessor API reference

MeshComponent

MeshComponent API reference

MeshManager

MeshManager API reference

MorphTargets

MorphTargets API reference

Object3D

Object3D API reference

Physics

Physics API reference

PhysXComponent

PhysXComponent API reference

Prefab

Prefab API reference

PrefabGLTF

PrefabGLTF API reference

RayHit

RayHit API reference

Resource

Resource API reference

ResourceManager

ResourceManager API reference

RetainEmitter

RetainEmitter API reference

Scene

Scene API reference

SceneResource

SceneResource API reference

Skin

Skin API reference

TextComponent

TextComponent API reference

Texture

Texture API reference

TextureManager

TextureManager API reference

ViewComponent

ViewComponent API reference

WL

WL API reference

WonderlandEngine

WonderlandEngine API reference

XR

XR API reference

XRSessionState

XRSessionState API reference