Skip to main content

Typescript API v0.3.2

Enumerations

EnumerationDescription
AssetTypeSupported asset types.
ComponentTypeSupported component types.
ColliderTypeSupported collider types.
MovementTypeSupported movement types for grab interactions.
ForceModeSupported force application modes.
ProjectionTypeSupported camera projection types.
LightShadowModeSupported shadow modes for a light.
LightTypeSupported light types.
MaterialPropertySupported material properties.
AlphaModeSupported alpha modes for a material.
ShadowCastingModeSupported shadow casting modes for a renderable component.
TextureFormatSupported texture data formats.
RenderTextureFormatSupported render texture formats.
TextureDimensionSupported texture dimensions.
TextureFilterModeTexture filtering modes.
TextureWrapModeTexture wrapping modes.

Classes

ClassDescription
DeviceReads and subscribes to device input values.
EntityManagerCreates and manages entities.
GrabInteractableManagerCreates and updates grab interactable components.
NetworkingProvides networking utilities for state synchronization, messaging, and user session events.
ColliderManagerCreates and updates colliders and collider event callbacks.
RigidbodyManagerCreates and updates rigidbody components.
ProjectRepresents a project.
CameraManagerCreates and updates camera components.
LightManagerCreates and updates light components.
MaterialManagerCreates and updates materials.
MeshManagerCreates and updates meshes.
RenderableManagerCreates and updates renderable components.
RendererManagerUpdates renderer settings.
TextureManagerCreates, updates, and reads textures.
TransformManagerReads and updates entity transforms.
UserRepresents a user.

Interfaces

InterfaceDescription
TextureTransformTexture transform data.
SparseMorphDataSparse morph target data.
MeshPrimitiveMesh primitive data.
AssetBase asset data.
TextureAssetTexture asset data.
MaterialAssetMaterial asset data.
MeshAssetMesh asset data.
ComponentBase component data.
PropertyComponentProperty component data.
TransformComponentTransform component data.
RenderableComponentRenderable component data.
GrabbleComponentGrabble component data.
RigidbodyComponentRigidbody component data.
CameraComponentCamera component data.
LightComponentLight component data.
ColliderBaseBase collider data.
BoxColliderBox collider data.
SphereColliderSphere collider data.
CapsuleColliderCapsule collider data.
ColliderComponentCollider component data.
PrefabAssetPrefab asset data.
WorldPropertyWorld-level project settings.
ProjectMetadataProject metadata.
ProjectDescriptionProject description data.
ProjectBundleProject bundle data.
NetworkStateNetwork state.
ProjectCallbacksProject lifecycle callbacks.
ImageReadbackResultImage data returned from a texture readback operation.

Type Aliases

Type AliasDescription
VersionSemantic version string.
DeviceSubscriptionOpaque numeric handle that identifies a device subscription.
EntityOpaque numeric handle that identifies an entity.
ColliderOpaque numeric handle that identifies a collider.
MaterialOpaque numeric handle that identifies a material.
MeshOpaque numeric handle that identifies a mesh.
TextureOpaque numeric handle that identifies a texture.

Variables

VariableDescription
DevicePathBuilt-in device input paths.
cubeMeshAssetMesh asset data for a cube.
quadMeshAssetMesh asset data for a quad.
sphereMeshAssetMesh asset data for a sphere.
capsuleMeshAssetMesh asset data for a capsule.
cylinderMeshAssetMesh asset data for a cylinder.

Functions

FunctionDescription
NewCubeMeshCreates a cube mesh.
NewQuadMeshCreates a quad mesh.
NewSphereMeshCreates a sphere mesh.
NewCapsuleMeshCreates a capsule mesh.
NewCylinderMeshCreates a cylinder mesh.
base64EncodeEncodes binary data as a base64 string.
base64EncodeAsyncEncodes binary data as a base64 string.
base64DecodeDecodes a base64 string into binary data.
base64DecodeAsyncDecodes a base64 string into binary data.