大约有 1,037 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
Laya_社区(608) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...is.preMovementX = movementX; this.preMovementY = movementY; this.curTarget.pos(Laya.stage.mouseX, Laya.stage.mouseY); } mouseUp() { Laya.stage.off(Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.mouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.mouseUp); let rig...
来源: Laya2.0_示例 发布时间: 20251130
...ya.PrimitiveMesh.createPlane(40, 40, 40, 40))); plane.transform.position = new Laya.Vector3(0, -2.0, 0); var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) { ...
来源: Laya_社区 发布时间: 20210103
...exture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170609
...g); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; dialog.show(); } })();module laya { import Stage = Laya.Stage...
来源: Laya_示例 发布时间: 20251130
...es+") "; this.txt.bold = true; this.txt.pos(10, 350); this.txt.fontSize = 60; this.txt.color = "#fff000"; Laya.stage.addChild(this.txt); } } } new laya.SmartScale_T(); ``` ### 二...
来源: Laya2.0_文档 发布时间: 20200307
...g); let button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; dialog.show(); } } new UI_Dialog();module laya { import Stage...
来源: Laya2.0_示例 发布时间: 20251130
...xt(); tx.text='这是一个demo'; tx.color='#ffffff'; tx.fontSize="20"; tx.pos(Laya.stage.width /2 ,Laya.stage.height /2); tx.pivot(tx.width /2 ,tx.height / 2); tx.align="center"; tx.valign="middle"; Laya.stage.addChild(tx); } })() 2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20171115
...click监听 let btn:Laya.Button=new Laya.Button(); btn.label="AAAAAA"; btn.pos(200,200); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,()=>{console.log("click button");}); 请问 这样监听不到button的点击事件吗?如果我创建一个ui.view a a.on 也监听不到吗 20...
来源: Laya_社区 发布时间: 20171128
...置显示位置不正确 我的版本是1.7.14,设置了sprite的pivot和pos,结果位置不正确 // 程序入口 class GameMain { private sp: Laya.Sprite; constructor() { Laya.init(2000, 1500); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" this.sp = new Laya.Sprite(); let width = 660 ...
来源: Laya_社区 发布时间: 20171230
... // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html = new HTMLDivElement(); html.innerHTML = "<img src='res/test1.png'/>"; html.pos(150, 100); Laya.stage.addChild(img); Laya.stage.addChild(html); 按照这个顺序,图片test1.png加...
来源: Laya_社区 发布时间: 20181219