API

Function WhenTextureReadyAsync

  • Waits for when the given texture is ready to be used (downloaded, converted, mip mapped...)

    Parameters

    • texture: BaseTexture

      the texture to wait for

    Returns Promise<void>

    a promise that resolves when the texture is ready