大约有 635 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
Laya_社区(387) laya_api(53) Laya3.0_api(48) Laya2.0_文档(47) Laya3.0_文档(33) Laya2.0_示例(31) Laya_示例(28) Laya2.0_api(8)
...ting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.rotation = 80; }附件中为旋转80、45、0角度时的现象 问题补充: Laya.init(720, 1280);这样就正常了。 Laya.init(720, 1280, laya.w...
来源: Laya_社区 发布时间: 20180505
...ack 一下? cuixueying • 2017-03-27 21:29 htmlDivElement默认宽高为200,当你的字体内容宽度超过200时,它会自动换行,所以你可以设置你的htmlDivElment对象的宽度值大些,就不会出现换行的问题了!譬如width=500,你试下,有问题我们再沟...
来源: Laya_社区 发布时间: 20170326
...d(this.panel); let line = new Laya.Sprite(); line.size(1000, 20); line.pos(200, 200); line.graphics.drawRect(0, 0, 1000, 20, '#ccc'); line.rotation = 45; line.scrollRect = new Laya.Rectangle(0, 0, 800, 20); this.panel.addChild(line); } }此时线条没有被panel裁切,完全显示出来,拖动p...
来源: Laya_社区 发布时间: 20210427
... this.firstSp = new Laya.Sprite(); this.firstSp.graphics.drawRect(0, -100, 200, 200, null, "#ffffff"); this.firstSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel); this._r...
来源: Laya_社区 发布时间: 20190314
...,在bgggame下写一遍即可) function bggame() { create(); tip.pos(200,200); tip.size(400,100); bg.loadImage("../laya/assets/img/134.png"); Laya.stage.addChild(bg); t = setInterval(time++,1000); } 2017-08-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20170801
...位置是向左移了2,那就是说相当于BOX1.X到左边的宽度是200米,右边是800-200=600米? 也就是说在这个时候,BOX1.position.x如果+1,就相当于加了100米?!
来源: Laya_社区 发布时间: 20180126
...ew Graphics(); graphics.save(); graphics.alpha(0.5); graphics.drawRect(0,0,200,100,"#FF0000"); graphics.restore(); sp.graphics=graphics; Laya.stage.addChild(sp);实现graphics填充透明,请先对graphics进行save(),然后设置填充透明度值,其次绘制矢量图形,最后执行下resto...
来源: Laya_社区 发布时间: 20161130
... textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 textInput.bgColor = "#aabbcc"; Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } function Text_InputMultiline(){ var textInput = new Laya.TextInput("多行输入");//...
来源: Laya2.0_文档 发布时间: 20210714
... "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function ():void { text = "ShowMsg"; color = "red"; }.bind(_lab); })); ``` 最后了来看下效果,如图2。 ; fireIcon.loadImage("laya/assets/res/image/fireIcon.png",0,0,200,200,new Laya.Handler(this,onloadImage)); function onloadImage(){ console.log('图片加载结束'); Laya.stage.addChild(fireIcon); } 资源的结构为: |-.laya |-bin |-laya |-assets |-res |-image ...
来源: Laya_社区 发布时间: 20180619