- 如何实现游戏内排行榜
请问如何实现游戏内排行榜,现在调开放数据域的api直接崩溃,官方给的样例也一样崩溃
2022-11-28 - engine.loader.loadfile url参数无效
传入的url确认是有值的,在编辑器里工作正常,但是在真机上报 parameter.url should be string instead of undefined T(res){ engine.loader.loadFile(res.userInfo.avatarUrl.toString(), { filetype: "image", }).then(result => { Tipper.instance.Show(result.toString()) const tex = new engine.Texture2D({ filterMode: engine.TextureFilterMode.BILINEAR, wrapU: engine.TextureWrapMode.CLAMP_TO_EDGE, wrapV: engine.TextureWrapMode.CLAMP_TO_EDGE, anisoLevel: 1 }); tex.initWithRGBABuffer(result.data, result.width, result.height); this.avatar.spriteFrame = engine.SpriteFrame.createFromTexture(tex); this.avatar.entity.transform2D.sizeX = tex.width; this.avatar.entity.transform2D.sizeY = tex.height; }, error => { Tipper.instance.Show(error.toString() + ":" + res.userInfo.avatarUrl.toString()); console.log(error); }); }
2022-11-23 - 工程无法初始化
[图片] 进入工程后提示配置异常 [图片] 选择修改后报错 [图片] 选择取消则一直卡在载入界面
2022-10-24