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

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

231. 引擎遮罩报错 [ 53%]

...hild(attItem); } let maskSp:Laya.Sprite = new Laya.Sprite; maskSp.graphics.drawRect(0,0,760,140,'#ffffff'); this.itemSpr.mask = maskSp; 测试 在无mask的情况下不会报错 开启mask之后 cacheAs失效 导致了强制缓存 抛出警告 警告累积一段时间报错 Monica • 2017-09-13 20:...

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

232. 微信浏览器,input输入完成后,游戏不能还原 [ 53%]

...width = Laya.stage.width; scene.height = Laya.stage.height; scene.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene);  var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height *...

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

233. 阻止点击穿透问题 [ 52%]

...ertLayer.size(W, H);   let bg = new Sprite(); bg.alpha = 0.8; bg.graphics.drawRect(0,0,W,H,"#000000"); this.prizeAlertLayer.addChild(bg); this.prizeAlertLayer.addChild(Main.items["prizeinfo"]); Laya.stage.addChild(this.prizeAlertLayer);   this.prizeAlertLayer.visible = false; 附件 : --> 2018-06-...

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

234. 在 tiledmap 插入一个精灵在上面 [ 52%]

...Map)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);   console.info(mapLayer.layerName);   this.sp.pos(0,0);   mapLayer._childs[0].addChild(this.sp); }   }   new GameInfo();   遇到的...

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

235. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 52%]

...件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化I...

来源: Laya2.0_文档 发布时间: 20210715

236. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 52%]

...l: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化I...

来源: Laya2.0_文档 发布时间: 20210715

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

...    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

238. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 52%]

...tor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height,...

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

239. 鼠标穿透问题 [ 52%]

...on createLoading():Sprite { _loadingBg = new Sprite(); _loadingBg.graphics.drawRect(0, 0, _list.width, _list.height, "#000000"); _loadingBg.alpha = .7; _loadingBg.size(_list.width, _list.height); _loadingBg.mouseThrough = true; return _loadingBg; } } } import laya.display.Sprite; class RecordItem ex...

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

240. 图片遮罩大小跟设置不一致 [ 51%]

...s(200, 0);           let sp = new Sprite()           sp.graphics.drawRect(0, 0, 50, 50, '#ffff000')           ape.mask = sp })); } })(); 右边的形状明显不是正方形 附件 : --> 2017-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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