Skip to content

getTexture

getTexture(pAsset, pSheet?): Texture

Gets a Texture asset.

Parameters

pAsset: string

The name of the texture to get.

pSheet?: string | string[]

(optional) The spritesheet(s) that the texture is in. You can leave this out unless you have two textures with the same name in different spritesheets

Returns

Texture

Source

src/utils/PixiUtils.ts:149