[]exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764

安卓上打包运行没问题
iphone上打包运行弹窗报以上alert,请问我该如何定位这个alert
已邀请:

archerxy

赞同来自: cuixueying

看到错误那行代码了,在laya.core.js里764行
            var tPadding=tInfo[0].attributes["padding"].nodeValue;
找到最终问题了,fnt文件格式问题

cuixueying

赞同来自:

这个需要你通过输出日志来定位问题,有重现问题的示例吗,我们安排看下!

archerxy

赞同来自:

找到问题了,是因为加载bmfont引起的,
        let blueFnt = new Laya.BitmapFont();
        blueFnt.loadFont("common/number_blue.fnt", new Handler(this, () => {
            Laya.Text.registerBitmapFont("number_blue", blueFnt);
        }));
但具体原因不清楚
能否请官方测试下bmfont在iphone上运行情况
 
 

cuixueying

赞同来自:

好的,我们安排测试下!

要回复问题请先

商务合作
商务合作