API

Interface IGLTFObjectModelTree

Top-level shape of the glTF Object Model accessor tree. Each property describes a navigable section of the JSON-Pointer namespace (e.g. /nodes, /materials, /scenes) that KHR_interactivity, KHR_animation_pointer and other extensions consume via GetMappingForKey.

interface IGLTFObjectModelTree {
    animations: {
        __array__: {};
        length: IObjectAccessor<IAnimation[], AnimationGroup[], FlowGraphInteger>;
    };
    cameras: IGLTFObjectModelTreeCamerasObject;
    extensions: IGLTFObjectModelTreeExtensionsObject;
    materials: IGLTFObjectModelTreeMaterialsObject;
    meshes: IGLTFObjectModelTreeMeshesObject;
    nodes: IGLTFObjectModelTreeNodesObject;
    scene: any;
    scenes: IGLTFObjectModelTreeScenesObject;
    skins: IGLTFObjectModelTreeSkinsObject;
}
Index
animations: {
    __array__: {};
    length: IObjectAccessor<IAnimation[], AnimationGroup[], FlowGraphInteger>;
}

Accessor tree for /animations.

Accessor tree for /cameras.

Accessor tree for /extensions (root-level glTF extensions).

Accessor tree for /materials.

Accessor tree for /meshes.

Accessor tree for /nodes.

scene: any

Read-only accessor for the active scene index (/scene).

Accessor tree for /scenes.

Accessor tree for /skins.