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

大约有 1,604 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)

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

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

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

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

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

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

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

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

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

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

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

557. Sprite optimizeScrollRect = true 似乎有问题 [ 74%]

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

558. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 73%]

...var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅有接收地址的url还接收base64和svg的格式。编译...

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

559. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 73%]

...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...

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

560. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 73%]

...stroy(); gameContainer.destroy(); }   gameContainer.mask=mask; Laya.stage.addChild(gameContainer);  })();  })(); 附件 : --> 2020-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个...

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