Interface: IResourceMetadata

PIXI.IResourceMetadata

Metadata for loader resource. It is very messy way to pass options for loader middlewares

Can be extended in GlobalMixins.IResourceMetadata

Properties:
Name Type Description
imageMetadata PIXI.IResourceMetadata

Used by BitmapFonts, Spritesheet and CompressedTextures as the options to used for metadata when loading the child image.

loadElement HTMLImageElement | HTMLAudioElement | HTMLVideoElement

The element to use for loading, instead of creating one.

mimeType string | string[]

The mime type to use for the source element of a video/audio elment. If the urls are an array, you can pass this as an array as well where each index is the mime type to use for the corresponding url index.

skipSource boolean

Skips adding source(s) to the load element. This is useful if you want to pass in a loadElement that you already added load sources to.

Extends

  • GlobalMixins.IResourceMetadata
  • IBaseTextureOptions

Members

imageMetadata PIXI.IResourceMetadata

Used by BitmapFonts, Spritesheet and CompressedTextures as the options to used for metadata when loading the child image.

loadElement HTMLImageElement | HTMLAudioElement | HTMLVideoElement

The element to use for loading, instead of creating one.

mimeType string | string[]

The mime type to use for the source element of a video/audio elment. If the urls are an array, you can pass this as an array as well where each index is the mime type to use for the corresponding url index.

skipSource boolean

Skips adding source(s) to the load element. This is useful if you want to pass in a loadElement that you already added load sources to.