大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
....WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0,...
来源: Laya_社区 发布时间: 20190520
... i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person); person.x = i * unitWidth; person.y = y; person.play("hongse_daiji", true); } })); //飞碟 this.genSpine("res/spine/ludo_feidie.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => { //...
来源: Laya_社区 发布时间: 20220530
...ent = Laya.Event; let w = 300, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDo...
来源: Laya2.0_示例 发布时间: 20251219
...createLightOccluder(): void { this.lightOccluder.pos(233, 265); this.owner.addChild(this.lightOccluder); let lightOccluderComponent = this.lightOccluder.addComponent(Laya.LightOccluder2D); lightOccluderComponent.canInLight = true; lightOccluderComponent.outside = true; let poly: Laya.PolygonPoint2D ...
来源: Laya3.0_文档 发布时间: 20251010
...,除了加入在子节点还有尝试其他解决方案吗,有些特效addchild到mesh上面的话,会影响到父节点的旋转数据,这个你怎么解决的 brooshe • 2018-08-13 11:13 @随风飘:子节点的特效会影响父节点的旋转数据?这不科学吧。我是没遇到过 ...
来源: Laya_社区 发布时间: 20180504
...Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addC...
来源: Laya3.0_文档 发布时间: 20230303
...ew = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重新描述問題 需求: 面板...
来源: Laya_社区 发布时间: 20250829
... bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); bg2.pivot(50,50) //创建mas...
来源: Laya_社区 发布时间: 20170826
...色 txt.color = '#ffffff'; this.addChild(txt); var v:View = new View(); v.graphics.drawCircle(50, 50, 100, "#000000"); v.pos(100, 100); this.addChild(v)...
来源: Laya_社区 发布时间: 20170725
...Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; Laya.stage.addChild(ti); return ti; } } } new laya.UI_Input();package { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Input { private const SPACING:int = 100; pr...
来源: Laya_示例 发布时间: 20251219