Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetGroup

Hierarchy

  • AssetGroup

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _assets

_assets: AssetMap

Methods

addAsset

  • addAsset(name: string, asset: Asset): void
  • Adds an asset to a group.

    Note this will not the load the asset.

    Parameters

    • name: string
    • asset: Asset

    Returns void

getAsset

  • getAsset(name: string): Asset

load

  • load(): Promise<void>
  • Loads all assets in the NOT_LOADED state. Promise will return once all resources are loaded.

    Returns Promise<void>

removeAsset

  • removeAsset(name: string): void
  • Removes the asset from the group.

    This will unload the asset if the asset is loaded.

    Parameters

    • name: string

    Returns void

unload

  • unload(): Promise<void>

Generated using TypeDoc