Skip to content

API / convertAlias

函数: convertAlias() ​

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

定义于: pixi/PixiAssetsUtil.ts:41

将资源的别名从一个路径转换到另一个路径。

参数 ​

参数类型描述
fromstring原始别名路径。
tostring新的别名 (文件名称)。

返回 ​

string

新的别名路径。

Released under the MIT License.