Engine API Reference - v2.23.0-beta.17
    Preparing search index...

    Interface AssetMap

    interface AssetMap {
        animation: Animation | AnimTrack;
        animclip: AnimTrack;
        animstategraph: AnimStateGraph;
        audio: Sound;
        binary: ArrayBuffer;
        bundle: Bundle;
        container: ContainerResource;
        css: string;
        cubemap: Texture | null;
        folder: null;
        font: Font | CanvasFont;
        gsplat: GSplatResourceBase | GSplatOctreeResource;
        hierarchy: Entity;
        html: string;
        json: unknown;
        material: Material;
        model: Model;
        render: Render;
        scene: Scene;
        scenesettings: any;
        script: Record<string, typeof Script>;
        shader: string;
        sprite: Sprite;
        template: Template;
        text: string;
        texture: Texture;
        textureatlas: TextureAtlas;
    }
    Index
    animation: Animation | AnimTrack

    An animation: an AnimTrack when loaded from a glTF or GLB file, or a legacy Animation when loaded from JSON.

    animclip: AnimTrack

    An animation clip.

    animstategraph: AnimStateGraph

    An animation state graph.

    audio: Sound

    A sound.

    binary: ArrayBuffer

    The raw contents of the file.

    bundle: Bundle

    A bundle: an archive whose files back other assets.

    The renders, materials, textures, animations and gsplats of a glTF or GLB file.

    css: string

    The CSS text.

    cubemap: Texture | null

    The cube map, or null when the asset provides only prefiltered levels. Asset#resources holds the cube map followed by its six prefiltered levels, with null for each level the asset does not provide.

    folder: null

    Folders hold no resource.

    font: Font | CanvasFont

    A Font loaded from a font file.

    gsplat: GSplatResourceBase | GSplatOctreeResource

    A Gaussian splat resource, or the octree resource of a level-of-detail splat scene.

    hierarchy: Entity

    The root entity of an instantiated scene hierarchy.

    html: string

    The HTML text.

    json: unknown

    The parsed JSON data.

    material: Material

    A material, a StandardMaterial unless a custom parser creates another kind.

    model: Model

    A model.

    render: Render

    The meshes of one glTF mesh, created when a container asset loads.

    scene: Scene

    A scene.

    scenesettings: any

    The settings block of a scene file.

    script: Record<string, typeof Script>

    The script classes declared by a script file, keyed by class name.

    shader: string

    The shader source text.

    sprite: Sprite

    A sprite.

    template: Template

    A template.

    text: string

    The text of the file.

    texture: Texture

    A texture.

    textureatlas: TextureAtlas

    A texture atlas.