Class AssetManager

Asset Manager

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

Hierarchy

Constructors

Properties

_storage?: Storage | Cache
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

Type declaration

  • Optional progress?: number
  • state: string
viewer: ThreeViewer
PluginType: "AssetManager" = 'AssetManager'

Deprecated

not a plugin anymore

Accessors

Methods

  • Parameters

    • Optional simpleCache: boolean
    • Optional storage: boolean | Storage | Cache

    Returns void

  • 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

Generated using TypeDoc