大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...xt.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya.stage.addChild(text); } } } 或者在config.js var assetFontData...
来源: Laya_社区 发布时间: 20191211
...景图。 box = new Sprite(); //把这容器添加到舞台。 Laya.stage.addChild(box); //创建背景1 bg1 = new Sprite(); //加载并显示背景图1 bg1.loadImage("res/background.png"); //把背景1添加到容器 box box.addChild(bg1); //创建背景2 bg2 = new Sprite(); //加载并显示背景...
来源: Laya_社区 发布时间: 20160810
..."res/room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.value = gRoomView.chatPanel....
来源: Laya_社区 发布时间: 20170911
...1.ls", Laya.Handler.create(this, function(scene){ this._scene = Laya.stage.addChildAt(scene, 0); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状...
来源: Laya2.0_文档 发布时间: 20210715
...e3D: Laya.PixelLineSprite3D = new Laya.PixelLineSprite3D(3500); this.scene.addChild(sphereLineSprite3D); //设置像素线渲染精灵线模式 Tool.linearModel(sphere, sphereLineSprite3D, Laya.Color.GREEN); } 到此,像素线代码部分就介绍完了,往往我们也可以对一个外部模型...
来源: Laya3.0_文档 发布时间: 20251010
...= Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ape.x = 0; tl.reset(); tl.to(ape, { x: 100 }, 1000); tl.play(); }); tl.to(ape, { x: 100 }, 1000); tl....
来源: Laya_社区 发布时间: 20190927
....regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题,但是一直都没有解答,也有人说要先注册class,但是也是没用的...
来源: Laya_社区 发布时间: 20210111
...着急解决的let input = new Laya.Input() this.changeIDBtn.displayObject.addChild(input) input.y = -200; input.x = -200; input.text = 2000 + "" 附件 : --> 2021-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20211205
... new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true...
来源: Laya_社区 发布时间: 20161109
射线一直无法获取物体 添加物体: var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null,...
来源: Laya_社区 发布时间: 20170915