Skip to main content

globals

Main

ClassDescription
LivelinkThis class represents the Livelink connection between the client and the 3dverse server holding the session. It holds access to the actual socket connection as well as a client local representation of the rendered scene.

Session

NameDescription
ClientA client in a session.
SessionA session running a scene.
TO_REMOVE__ViewportsAddedEvent-
DisconnectedEventEvent emitted when the session is disconnected.
InactivityWarningEventEvent emitted when the client is about to be disconnected due to inactivity.
ActivityDetectedEventEvent emitted when activity is detected after a period of inactivity.
ClientJoinedEventEvent emitted when a client joins the session.
ClientLeftEventEvent emitted when a client leaves the session.
ClientInfoInformation about a client in a session.
SessionEvents-
SessionInfoInformation about a session.

Scene

NameDescription
EntityAn entity in a scene.
EntityUpdatedEventThe event that is fired when an entity is updated, either by adding, modifying or removing components.
EntityVisibilityChangedEventThe event that is fired when the entity visibility changes.
SceneThe scene class.
EntityEvents-
EntityCreationOptionsOptions for creating a new entity.

Streaming

NameDescription
EncodedFrameConsumerA base class for consuming encoded frames.
SoftwareDecoderSoftware decoder that uses Broadway.js to decode h264 encoded frames.
WebCodecsDecoderA decoder that uses the WebCodecs API to decode video frames.
DecodedFrameConsumerThe interface for consuming decoded frames.
FrameMetaData-

Rendering

NameDescription
CameraControllerPresetsCamera controller presets module.
CameraControllerA camera controller based on the camera-controls library.
CameraProjectionHolds the projection and transform matrices associated to a camera entity.
ViewportA viewport is a rendering area on a RenderingSurfaceBase that is associated with a CameraProjection.
EntityHoveredEventThe event that is fired when an entity is hovered.
EntityPickedEventThe event that is fired when an entity is picked.
Context2D-
ContextProvider-
ContextWebGL-
XRContext-
OffscreenSurface-
Rect-
InvalidSizeErrorOccurs when an element has an invalid size.
OutOfBoundsErrorOccurs when an element is not contained into its parent bounds.
RelativeRect-
RenderingSurfaceA rendering surface backed by an HTML canvas.
RenderingSurfaceBaseAbstract class for rendering surfaces.
RenderingSurfaceResizedEventAn event that is fired when a rendering surface is resized.
VirtualSurfaceA virtual rendering surface.
OverlayInterfaceInterface for rendering overlays.
LockMousePointerAimAim of the pointer lock: - "off": disable pointer lock. - "always": lock pointer as soon as the pointer is down and never unlock it. - "on-drag": lock pointer as soon as the first pointer is down and unlock it when ell the pointers are up.
CameraControllerPresetA preset of the properties of the CameraController class. You can refer to https://www.npmjs.com/package/@3dverse/livelink-camera-controls for more information. Properties documented with [custom] prefix are not part of the livelink-camera-controls package.
RayA ray in 3D space.
ViewportEvents-
Canvas-
CanvasContextAttributes-
CanvasContextType-
RenderingSurfaceEvents-

Inputs

ClassDescription
Gamepad-
Keyboard-
Mouse-

Core

NameDescription
Commands-
Enums-
Queries-
Events-
ActivityWatcherWatch activity on the gateway.
DynamicLoaderDynamically loads the Livelink core library.
LivelinkCoreThe LivelinkCore is the main entry point to the Livelink API.
SessionInterfaceSession interface.

Engine Schemas

NameDescription
AssetsAll assets defined in the engine.
ComponentsAll the components that can be attached to an entity.
Transform-
ComponentName-
EntityCore-
ComponentsManifest-
ComponentType-
ComponentsRecord-

Engine Types

Type aliasDescription
RTIDRTID stands for RunTime ID. It is an identifier that is guaranteed to be unique for each entity in the scene. It is only valid for the lifetime of the session.
UUIDUniversally Unique Identifier as a string.
EntityRefA complete and unique reference to an entity.
AssetRefA reference to an asset.
AnimationGraphDataObjectThe data object to use in the dataJSON property of the Components.AnimationController component.
ScriptDataObjectThe data object to use in the dataJSON property of the Components.ScriptElement component.
RenderGraphDataObjectThe data object to use in the dataJSON property of the Components.Camera component.
ShaderDataObjectThe data object to use in the dataJSON property of the Components.Material component.
Vec2-
Vec3-
Vec4-
Vec2i-
Vec2u16-
Quat-
Mat4-
UInt8-
UInt16-
UInt32-
UInt64-
Int8-
Int16-
Int32-
Int64-
Float32-
Float64-
Float-
Double-
NativeTypeA dummy type to enforce the instantiation of a type alias of a native type, such as string or number. This is only to ensure that the alias type shows up in the generated documentation and in autocomplete.

Entity Utils

Type aliasDescription
FindEntityQueryFind entity query to find entities based on different criteria.
FindEntityOptionsOptions for the find entity query.
EntityResponseThe response to a find entity query.
UpdateEntityCommand-