原因是, Laya,在 canvas repaint 时 calculate CacheRect 的w,h,x,y值为NAN。
你可以修改下laya.core.js 中 的函数 _calculateCacheRect(sprite, tCacheType, x, y){}
可以解决报错的问题:
tRec = sprite.getSelfBounds();
tRec.width = tRec.width || 0;
tRec.height = tRec.height || 0;
tRec.x = tRec.x || 0;
tRec.y = tRec.y || 0;