Skip to main content

Interface: MeshObservers

Reads the meshes and assets of a standard product or the placed items of a modular product. Lists are null before a product is available and empty when there are no entries.

Example​

window.mimeeqApp.observers.meshes.active.subscribe(({ newValue }) => console.table(newValue ?? []));

Properties​

active​

active: StateObservable<ObservedMesh[] | null>

The authored meshes active in the current configuration.

Example​

console.table(window.mimeeqApp.observers.meshes.active.getValue() ?? []);

all​

all: StateObservable<ObservedMesh[] | null>

Every authored mesh, including hidden, disabled and missing meshes.

Example​

console.table(window.mimeeqApp.observers.meshes.all.getValue() ?? []);

animations​

animations: StateObservable<ObservedAnimationGroup[] | null>

Animation groups defined for the items in the current configuration.

Example​

console.table(window.mimeeqApp.observers.meshes.animations.getValue() ?? []);

collisions​

collisions: StateObservable<ObservedCollisionMesh[] | null>

The active collision meshes.

Example​

console.table(window.mimeeqApp.observers.meshes.collisions.getValue() ?? []);

hotspots​

hotspots: StateObservable<ObservedMeshHotspot[] | null>

Hotspots and their presentation settings.

Example​

console.table(window.mimeeqApp.observers.meshes.hotspots.getValue() ?? []);

materials​

materials: StateObservable<ObservedSceneMaterial[] | null>

Materials used by the active meshes.

Example​

console.table(window.mimeeqApp.observers.meshes.materials.getValue() ?? []);

textures​

textures: StateObservable<ObservedMaterialTexture[] | null>

Texture channels for the materials in use.

Example​

console.table(window.mimeeqApp.observers.meshes.textures.getValue() ?? []);