Skip to content

API / convertAlias

Function: convertAlias()

ts
function convertAlias(from: string, to: string): string;

Defined in: pixi/PixiAssetsUtil.ts:41

Convert the alias of an asset from one path to another.

Parameters

ParameterTypeDescription
fromstringThe original alias path.
tostringThe new alias (file name).

Returns

string

The new alias path.

Released under the MIT License.