Class AssetManager

Asset Manager

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

Hierarchy

Constructors

Properties

exporter: AssetExporter
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

MMNEPVFCICPMFPCPTTAAATR