Implements

  • unknown

Constructors

Accessors

  • get name(): string
  • Returns string

Methods

  • Parameters

    • gltf: GLTF

    Returns null

  • Load a different resolution of a texture (if available)

    Parameters

    • context: Context

      the context

    • source: string

      the sourceid of the file from which the texture is loaded (this is usually the component's sourceId)

    • materialOrTexture: any

      the material or texture to load the LOD for (if passing in a material all textures in the material will be loaded)

    • level: number = 0

      the level of detail to load (0 is the highest resolution) - currently only 0 is supported

    Returns Promise<any>

  • subscribe to loading event ended event

    Parameters

    • context: Context
    • evt: ProgressiveLoadingEvent

    Returns void

  • subscribe to events whenever a loading event starts, invoked for every single loading process that starts

    Parameters

    • context: Context
    • evt: ProgressiveLoadingEvent

    Returns void

  • Parameters

    • context: Context
    • evt: ProgressiveLoadingEvent

    Returns void

  • Parameters

    • context: Context
    • evt: ProgressiveLoadingEvent

    Returns void

Generated using TypeDoc