• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 247 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0035 秒)

111. list item 添加事件后无法监听 [ 74%]

...5);     api_list_view.dataSource = createAPIList();     Laya.stage.addChild(api_list_view);   }   2018-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 问题描述具体一...

来源: Laya_社区 发布时间: 20180724

112. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...> { 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

113. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 74%]

...赋给了模型。 ```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

114. 创建材质(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 74%]

...赋给了模型。 ```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

115. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...> { 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

116. WaterPrimaryMaterial的使用 [ 73%]

...里怎么调都是单一色块呢?   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

117. 3D模型无法用Tween类吗 [ 73%]

...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

118. 创建材质(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 73%]

...型。 ```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

119. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 73%]

...统计信息 // 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

120. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 73%]

...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