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

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

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

...ext();         text1.text = "ceshi1";         Laya.stage.addChild(text1);         text1.fontSize = 40;         text1.x = 280;         text1.y = 180;         let filter1 = new Laya.ColorFilter();         filter1.setColor("#00FF7F"); ...

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

552. 多边形无法闭合 [ 74%]

...omething(); })(); function drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 60,100, 50, 100, 50,80, 40, 80, 40, 90, 30,90, 30, 80,20, 80,20,90,0, 90], "#ffff00"); } })(); 绘制出来的多边形无法闭合 附件 : --> 2017-1...

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

553. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 74%]

...lect); list.renderHandler = new Handler(this, this.updateItem); Laya.stage.addChild(list); // 设置数据项为对应图片的路径 var data: Array = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.j...

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

554. 1.7.12beta版本 drawPoly() 有Bug,少填充一部分. [ 74%]

...wSomething()     {         sp = new Sprite();         Laya.stage.addChild(sp);           // 绘制这些坐标.会出现如下图的错误         sp.graphics.drawPoly(0, 0, [285,285,-1,285,-1,-1,285,-1,285,213.24324324324323,240,240,240,260,260,260,285,259.12280701754383], "#ffff...

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

555. 在 tiledmap 插入一个精灵在上面 [ 74%]

...sole.info(mapLayer.layerName);   this.sp.pos(0,0);   mapLayer._childs[0].addChild(this.sp); }   }   new GameInfo();   遇到的问题1 把精灵插入地图时 如果代码这样写就会报错  mapLayer.addChild(this.sp);  必须要这样写才可以 mapLayer._childs[0].addChild(this.sp);  ...

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

556. 用Transform和直接设置xy坐标的效果不一致 [ 73%]

... "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt);          txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya.Matrix(); mat.translate(1136 / 2, 320); txt.transform = mat; Laya.stage.addChild(txt); 2018-10-15 添加评...

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

557. 我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 [ 73%]

...何截取小数点之前的数字 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? LayaAir IDE 1.7.15 beta 九宫格在ie11下有缝隙,希望得到关注和解决! 问题状态 最新活动: 2018-06-13 ...

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

558. Sprite optimizeScrollRect = true 似乎有问题 [ 73%]

...(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initContent = function () { this.content = new Box(); this.content.width = this.width; this.content.autoSize = true; this.content.y = this.scrollMode == DOWN_TO_TOP ? this.height : 1; this.mask.add...

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

559. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 73%]

...         sp = new Sprite();             Laya.stage.addChild(sp);             //画直线             sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3);                       }     } } ``` 发布后如下图所示,我...

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

560. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 73%]

...toSize = true; redBox.graphics.drawRect(0,0,100,100,'#ff0000'); Laya.stage.addChild(redBox); redBox.on("click",this,function(){ trace("click redbox"); }); redBox.on("mouseover",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#00ff00'); }); redBox.on("mouseout",this,fu...

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