大约有 247 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0039 秒)
Laya_社区(133) Laya2.0_文档(40) Laya3.0_文档(16) laya_api(15) Laya3.0_api(13) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...
来源: Laya_示例 发布时间: 20250312
...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...
来源: Laya2.0_示例 发布时间: 20200319
...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInput(); this.addChild(this.input); this.input.x = 50; this.input.text =...
来源: Laya_社区 发布时间: 20180312
... list.renderHandler = new Laya.Handler(this, this.updateItem); this.owner.addChild(list); // 设置数据源为对应图片的路径 var data: any[] = []; for (var i: number = 0; i < 10; ++i) { data.push("resources/res/ui/listskins/1.jpg"); data.push("resources/res/ui/listskins/2.jpg"); data.push...
来源: Laya3.0_文档 发布时间: 20240910
...方法如下: ```typescript //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建物理碰撞器 var staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //标记为触发器,取...
来源: Laya2.0_文档 发布时间: 20210714
...; } } private function createHouse() { var house= new Sprite(); Laya.stage.addChild(house); var rigidbody: RigidBody = house.addComponent(RigidBody); rigidbody.type = "static"; var chainCollider: ChainCollider = house.addComponent(ChainCollider); chainCollider.loop = true; chainCollider.points = "60...
来源: Laya2.0_示例 发布时间: 20250312
...: ```typescript //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; //创建物理碰撞器 var staticCollider:PhysicsCollider = box.addComponent(PhysicsCollider); //标记为触发器,取消物理反馈 staticCol...
来源: Laya2.0_文档 发布时间: 20210715
...etRes("LayaScene_Laya3D01/Laya3D01.lh"); 把模型添加到场景中 scene.addChild(box) 还有建议你可以看一下3D相关的文档 文档里的代码解释很详细 2018-03-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20180309
... new Laya.Box() bgWrapper.zOrder = 0 let bg = new Laya.Sprite(); bgWrapper.addChild(bg) Laya.stage.addChild(bgWrapper) bgWrapper.x = 375 bgWrapper.y = 667 bg.loadImage("../res/image/interface/intro_bg.png",0,0,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 20 2018-05-19 1 0 分享 微博 Q...
来源: Laya_社区 发布时间: 20180519
...istener(); } Construct() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponentIntance(rigidbody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,200,50,570,1050...
来源: Laya2.0_示例 发布时间: 20250312