mwg API
    Preparing search index...

    Function texture

    • A loaded texture, by the same path it was loaded with. fallback is what an optional load() path was for: pass it (typically Texture.EMPTY) to get that back instead of a throw when the path never loaded, rather than every caller writing its own isLoaded guard.

      Parameters

      • path: string
      • Optionalfallback: Texture<TextureSource<any>>

      Returns Texture