ThreePipe
    Preparing search index...

    Class AssetManager

    Asset Manager

    Utility class to manage import, export, and material management.

    Hierarchy

    Index

    Constructors

    Properties

    exporter: AssetExporter
    gltfExtensions: {
        export: (parser: GLTFWriter2) => GLTFExporterPlugin;
        import: (parser: GLTFParser, viewer?: ThreeViewer) => GLTFLoaderPlugin;
        name: string;
        textures?: Record<string, string | number>;
    }[] = []
    importer: AssetImporter
    materials: MaterialManager
    processState: Map<string, { progress?: number; state: string }> = ...

    State of download/upload/process/other processes in the viewer. Subscribes to importer and exporter by default, more can be added by plugins like FileTransferPlugin

    viewer: ThreeViewer
    PluginType: "AssetManager" = 'AssetManager'

    not a plugin anymore

    Accessors

    Methods

    • Set process state for a path Progress should be a number between 0 and 100 Pass undefined in value to remove the state

      Parameters

      • path: string
      • value: undefined | { progress?: number; state: string }

      Returns void