LogoPixi’VN
pixi-jsFunctions

Function: textureFrom()

> textureFrom(id, skipCache?): Texture

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/textureFrom.d.ts:38

Internal

Helper function that creates a returns Texture based on the source you provide. The source should be loaded and ready to go. If not its best to grab the asset using Assets.

Parameters

id

TextureSourceLike

String or Source to create texture from

skipCache?

boolean

Skip adding the texture to the cache

Returns

Texture

The texture based on the Id provided