• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 17 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0024 秒)

11. laya中的截屏在WebGL下为什么无效呢? [ 62%]

...eSnapEffect.graphics.beginFill( 0xFFFFFF ); this._shapeSnapEffect.graphics.drawRect( 0, 0, L.W_CLIP, L.H_CLIP ); this._shapeSnapEffect.graphics.endFill(); this._shapeSnapEffect.cacheAsBitmap = true; this._shapeSnapEffect.x = this._bmpSnap.x; this._shapeSnapEffect.y = this._bmpSnap.y; http://develope...

来源: Laya_社区 发布时间: 20170618

12. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 61%]

...e("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF", 1); //this.tMapPlayer.loadImage("unit/test.png"); this.tMapPlayer.zOrder = 1000; testLayer.addChild(this.tMapPlayer); }楼上您好,我照着你的代码写的,但是还是...

来源: Laya_社区 发布时间: 20170627

13. Laya没有找到在ide里编辑模式下的GridEditor类 [ 58%]

...= 那还放在ide里让我流口水。。 sheen • 2018-01-15 12:39 而且drawRect超过一定数量就会报错。。fillText和DrawLine都没有问题。。 qian • 2018-01-15 15:27 你用最新(1.7.15beta)写一个例子 要是还不行的话麻烦上传一下 这边帮你看看 sheen • 2...

来源: Laya_社区 发布时间: 20180112

14. ios15遮罩引起的黑屏在1.x的版本上如何解决 [ 56%]

... 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);   //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 highLightArea = new ...

来源: Laya_社区 发布时间: 20221010

15. 最新版本绘制100x100个sprite ios不能显示 [ 56%]

...t; this.MapColNum; j++){ var box = new laya.display.Sprite(); box.graphics.drawRect(0, 0, 30, 30, null, "#e6e4ef", 1); box.x = i * 30; box.y = j * 30; boxSp.addChild(box); } } boxSp.cacheAs = "bitmap"; this.addChild(boxSp); } boxSp.cacheAs = "bitmap"; 如果去掉这句话可以显示 是内部设...

来源: Laya_社区 发布时间: 20161008

16. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 54%]

...    var _mDown:Sprite=new Sprite();             _mTop.graphics.drawRect(0,0,1,1,"#0");     3.叠加效果 BlendMode.ADD,apk中无效   4.MouseManager.as 运行 时报错,“ touchemoves is undefined”                case "touchmove":                      va...

来源: Laya_社区 发布时间: 20170510

17. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 51%]

...: 768 关注: 3 人 momo199059 • 2018-01-06 12:06 就是我用graphics.drawRect 画一个黑色sprite,在浏览器是里正常的,但是在apk里面是白色的 momo199059 • 2018-01-06 12:07 还有就是在apk里 htmldivelement 是不是html的<image>标签就无效了 momo199059 • 2...

来源: Laya_社区 发布时间: 20180106