Load GLB files (using Three.js), using the "model3D" resources registered in the game resources.

Implements

Constructors

Methods

  • Return a 3D model.

    Caller should not modify the object but clone it.

    Parameters

    • resourceName: string

      The name of the json resource.

    Returns GLTF

    a 3D model if it exists.

  • Load the specified resource.

    This method will be run during the game. It should only do light tasks like file downloading.

    Parameters

    • resourceName: string

    Returns Promise<void>

  • Process the specified resource.

    This method will only be run while loading screen is shown. It can do heavy tasks like parsing data.

    Parameters

    • resourceName: string

    Returns Promise<void>