大约有 20 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
...下,感谢大家,1000用户还差几十人 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! 早年自己写的一个游戏开源给大家 对你有帮助来个小星星 问题...
来源: Laya_社区 发布时间: 20190322
...dChild(guideContainer); guideContainer.mouseEnabled = true; guideContainer.cacheAs = "bitmap"; var hitArea = new HitArea(); hitArea.hit.drawRect(0, 0, width, height, "#000000"); guideContainer.hitArea = hitArea; var maskArea = new Sprite(); guideContainer.addChild(maskArea); maskArea.graphics.drawRe...
来源: Laya_社区 发布时间: 20171031
...有一个,程序的开销估计是在显示列表的遍历,可以设置CacheAs='bitmap'采用离屏渲染的方式减少遍历。 2016-12-27 0 0 分享 微博 QZONE 微信 zhongguo168a 赞同来自: 试过了,不行……如果是每个item为cache,会导致dc为2000,性能更差劲了。...
来源: Laya_社区 发布时间: 20161227
...tainer = new Laya.Sprite(); this.guideContainer.cacheAs = "bitmap"; this.addChild(this.guideContainer); let maskArea = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea....
来源: Laya_社区 发布时间: 20200119
...加一个容器 var box = new Sprite(); // 设置容器为画布缓存 box.cacheAs = "bitmap"; this.layCanvas.addChild(box); // 绘制红色方块 var red = new Sprite(); red.graphics.drawRect(0, 0, 150, 150, "#ff0000"); box.addChild(red); // 绘制一个圆形区域,利用叠加模式,抠除上...
来源: Laya_社区 发布时间: 20170707
...要如何修复 //绘制遮罩区,含透明度,可见游戏背景 mask.cacheAs = "bitmap"; var maskArea:Sprite = new Sprite(); maskArea.alpha = 0; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.setName("maskArea") mask.addChild(maskArea); //绘制...
来源: Laya_社区 发布时间: 20221010
... 0 0 分享 微博 QZONE 微信 irreplaceable 赞同来自: 为什么要把cacheAs设置为bitmap才可以呢,不是很理解 2018-08-13 0 0 分享 微博 QZONE 微信 LjDarren 赞同来自: 感谢分享······但是现在有个疑问,在一定的情况下,如果抠图区域进行移动...
来源: Laya_社区 发布时间: 20171221
... //设置容器为画布缓存 box.cacheAs = "bitmap"; box.pos(200, 200); Laya.stage.addChild(box); //绘制红色方块 var red:Sprite = new Sprite(); ...
来源: Laya_社区 发布时间: 20161122
...uideContainer.autoSize = true; guideContainer.pos(120,150); guideContainer.cacheAs = "bitmap"; guideContainer.alpha = 0.5; Laya.stage.addChild(guideContainer); guideContainer.on("click",this,function(){ trace("click guideContainer"); }); guideContainer.on("mouseover",this,function(){ sp1.graphics.cl...
来源: Laya_社区 发布时间: 20170710
... mapData = mapSession.mapData; guideContainer=new Sprite(); guideContainer.cacheAs = "bitmap"; this.addChild(guideContainer); maskArea = new Sprite(); maskArea.alpha = 0.3; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#0ef604"); guideContainer.addChild(m...
来源: Laya_社区 发布时间: 20171213