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

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

1. sprite做的按钮点击无反应? [ 100%]

...btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (stageWd) * 0.5 , (stageHt - h) * 0.5-43, "25px SimHei", "#FFFFFF", "center"); //dialog_mc.addChild(btn); Laya.stage.addChild(btn); btn.on(Event.CLICK, this, function(){ alert("点...

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

2. 加载TiledMap 不显示 [ 78%]

.../ Math.PI * 30) * radiusX;         var color: string = "#FF7F50";          this.sprite = new Sprite();         this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color);         this.sprite.graphics.drawLine(0, 0, radiusX, radiusY, color);  ...

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

3. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 75%]

..."; text.fontSize = 18; text.pos(aar[i][0]+10,aar[i][1]+66); text.color = "#FF7F00"; text.zOrder = 1; this.addChild(text); var text = new Text(); text.text ="100123"; text.fontSize = 18; text.pos(aar[i][0]+10,aar[i][1]+85); text.color = "#FF7F00"; text.zOrder = 1; this.addChild(text); var bgSprite = ...

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

4. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 74%]

....x, p1.y);             target.graphics.drawPoly(p1.x, p1.y,path,"#FF7F50");                                       _mask.graphics.drawTexture(texture,0,0);                          var path1:Array = ;             path1.push(p2.x, p2.y); ...

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

5. 绘制平明问题 [ 70%]

...vas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); 这个可以通过一些点来绘制一个平面图形 2017-11-03 0 1 分享 微博 QZONE 微信 i_like_these 赞同来自: 请问下 这个绘制是2d的吗 还是3D的 能绘制3D平面吗?  2017-11-06 0 0 分...

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

6. Sprite对象中的scrollRect如何使用?为什么是undefined [ 67%]

...     h = 770;             bimgBox.graphics.drawRect(0, 0, w, h, "#FF7F50");             var rect = new Rectangle(0,0,200,200);             bimgBox.scrollRect = rect;             bimgBox.optimizeScrollRect = true;    这是我的调用方法,麻烦知道的高手指点...

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

7. drawCallOptimize与滤镜同时使用时文本显示异常 [ 64%]

...filter1 = new Laya.ColorFilter();         filter1.setColor("#00FF7F");         text1.filters = [filter1];          let text2 = new Laya.Text();         text2.text = "ceshi2";         Laya.stage.addChild(text2);         text2.fontSize = 40...

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

8. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 59%]

... = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/s...

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

9. sound manager在MOUSE_OVER事件中无法播放 [ 58%]

...w, h);             button.graphics.drawRect(0, 0, w, h, "#FF7F50");             button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center");             Laya.stage.addChild(button);             return button;      ...

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

10. 分享:销毁龙骨动画! [ 56%]

... = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2 , 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private function parseComplete(fac:Templet):void { //创建模式为1,可以启用换...

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