[0]Image偶尔显示不了

       用的是LayaAirIDE2.3,图片偶尔显示不了,经查parent,visible,x,y,width,height,alpha,skin都正常,资源所在图集也存在,不过小图的source的_referecentCount==0,_texture==null。不知是不是这个原因引起?
     如附件图,black.png是用到的小图,所在图集为comui.atlas
image显示异常.png

 
已邀请:

哈密

赞同来自:

经查,image的_boundStyle的宽高异常,但是image的width、height又正常。不知哪一步出错了?望官方大大帮忙查下

哈密

赞同来自:

Laya.Botton添加的舞台,个别显示不出来。查看内存发现,
bit.jpg

如图,游戏主界面底部按钮列表(“基地按钮”,“野外按钮”,“主角按钮”,“阵容按钮”,“挂机按钮”,“挑战按钮”)中,"野外按钮”显示异常。
主界面是用.scene文件通过createChildren自动生成的。
 
异常显示的“野外按钮”内存如下:
bottom._bit==70,
bottom._bitmap._sp._bit ==70,
bottom._bitmap.source == "undefined "
bottom._bitmap._render == f _renderEmpty{};
 
其他正常显示的button内存如下:
bottom._bit = 70
bottom._bitmap._sp._bit ==70 或 bottom._bitmap._sp._bit ==214,
bottom._bitmap.source == Texture{...}
bottom._bitmap._render == f _renderOne{};

Yan

赞同来自:

方便提供运行示例吗

yanmingjie

赞同来自:

可能是这个问题

哈密

赞同来自:

问题修复了,是我自定义的Timer.clearCallLater移除callLaterHandler(caller,method)异常导致的,AutoBitmap.changetSource执行不到。

要回复问题请先

商务合作
商务合作