大约有 247 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0035 秒)
Laya_社区(133) Laya2.0_文档(40) Laya3.0_文档(16) laya_api(15) Laya3.0_api(13) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
...5); api_list_view.dataSource = createAPIList(); Laya.stage.addChild(api_list_view); } 2018-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 问题描述具体一...
来源: Laya_社区 发布时间: 20180724
...> { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建VBox组件 pri...
来源: Laya3.0_文档 发布时间: 20240910
...赋给了模型。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.pn...
来源: Laya2.0_文档 发布时间: 20210714
...赋给了模型。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layab...
来源: Laya2.0_文档 发布时间: 20210714
...> { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建HBox组件 pri...
来源: Laya3.0_文档 发布时间: 20240910
...里怎么调都是单一色块呢? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); //...
来源: Laya_社区 发布时间: 20181030
...3D =Laya.Sprite3D.load("LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移...
来源: Laya_社区 发布时间: 20180112
...型。 ```typescript //添加自定义模型 var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load...
来源: Laya2.0_文档 发布时间: 20210715
...统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.r...
来源: Laya_社区 发布时间: 20180307
...new 出的带有 PhysicsCollider 的正方体模型报错 this.box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot read prop...
来源: Laya_社区 发布时间: 20190118