This is meant to be used with the ResourceLoader. It allows you to load additonal resources.

It takes care of all dependencies.

See

ResourceLoader

Hierarchy

  • SubResourceLoader

Methods

  • Use this to request one or more sub-resources your loader format needs.

    Example could be:

    sheetConfig = await mySubResLoader.request(['json:mySpriteSheet.json']);
    const images = await mySubResLoader.request(sheetJson.images);
    // now sheet config & images are there to create the object

    Parameters

    • resUrls: string[]

    Returns Promise<any[]>

Generated using TypeDoc