你好!
解析“资产”的最佳方式是什么?
parseLDtk() {
if (this._ldtkAsset) {
// 解析内容
const asString = this._ldtkAsset.toString();
const serialize = this._ldtkAsset.serialize();
const native = this._ldtkAsset._nativeAsset;
console.log(asString); // assets/general/native/54/5473bf97-839e-4d11-af5d-acd2e30bfaf4.ldtk
console.log(serialize); // undefined
console.log(native); // 好的,但已弃用
}
}
任何想法 ?