大约有 1,604 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)
Laya_社区(973) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
...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
...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
...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
... "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
...何截取小数点之前的数字 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? LayaAir IDE 1.7.15 beta 九宫格在ie11下有缝隙,希望得到关注和解决! 问题状态 最新活动: 2018-06-13 ...
来源: Laya_社区 发布时间: 20180613
... sp = new Sprite(); Laya.stage.addChild(sp); //画直线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); } } } ``` 发布后如下图所示,我...
来源: Laya2.0_文档 发布时间: 20210714
...(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
...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
...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
...stroy(); gameContainer.destroy(); } gameContainer.mask=mask; Laya.stage.addChild(gameContainer); })(); })(); 附件 : --> 2020-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20200603