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

大约有 248 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)

121. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 72%]

...ull, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 Monica - 知识达人...

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

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

...> { 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_文档 发布时间: 20251010

123. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 71%]

...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebG...

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

124. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 71%]

...想给它六个面贴不同的贴图,该如何处理? var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); mat...

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

125. add PhysicsCollider组件的时候之间运行报错【2.0beta5.1] [ 71%]

...3D = new MeshSprite3D(boxMesh); box3D.addComponent(PhysicsCollider); scene.addChild(box3D); 附件 : --> 2019-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 131*****361 赞同来自: 找到了,F9导入对...

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

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

...> { 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_文档 发布时间: 20251010

127. rigidBody.applyForce 物体不会移动 [ 71%]

... Laya.Scene3D(); //将场景加到舞台上 this.scene = scene; Laya.stage.addChild(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var li...

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

128. 预制体模块 · LayaAir3文档 · LAYABOX [ 71%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

来源: Laya3.0_文档 发布时间: 20241014

129. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

来源: Laya3.0_文档 发布时间: 20251105

130. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 70%]

..._TRANSPARENT设置透明度不行了? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D;         box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);         var material: Laya.BlinnPhongMaterial = new ...

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