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<"">
viewer: ThreeViewer
PluginType: "AssetManager" = 'AssetManager'

Deprecated

not a plugin anymore

Accessors

Methods

  • Parameters

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

    Returns void

  • Deprecated

    use exportConfig instead

    Parameters

    • binary: boolean = true

      if set to false, encodes all the array buffers to base64

    Returns Record<string, any>

  • Deprecated

    moved to loadConfigResources

    Parameters

    • json: any
    • Optional extraResources: any

      preloaded resources in the format of viewer config resources.

    Returns Promise<any>

Generated using TypeDoc