大约有 470 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
...function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) } 方法二: list组件.itemRender = UI页面 function renderHandler(item:UI页面,index:int):void { item.setEvent() //...
来源: Laya_社区 发布时间: 20171128
...y 'btCollisionObject' of undefined 图集打包找不到图集文件 使用getChildByName()无法得到子节点对象 关于场景编辑器的,用的最新版引擎 问题状态 最新活动: 2025-05-15 11:08 浏览: 7422 关注: 3 人 Heured • 2025-05-15 12:56 有这么个用例, 父节点...
来源: Laya_社区 发布时间: 20250504
...onventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给其他模型使用,这...
来源: Laya2.0_文档 发布时间: 20210715
...,具体显示如图片。 代码如下: var light = this.MainScene3D.getChildByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = ...
来源: Laya_社区 发布时间: 20191223
...s.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190531
...法关闭 关于发布oppo、vivo快游戏,无法生成Rpk问题 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2020-10-22 17:27 浏览: 2854 关注: 3 人 XZW734173384 • 2018-03-07 16:19 是的,资源路径的确选择的是生成h5后的index.html 所在目...
来源: Laya_社区 发布时间: 20180307
...是与美术事先约定好的。确认层级后可以过getChildAt()、或getChildByName()等方法获取模型后,再获取动画组件。** 还有一种备选方案:在获取动画组件之前,可以打开.ls或.lh查看有动画组件模型的层级关系,再去获取模型与动画组...
来源: Laya2.0_文档 发布时间: 20210715
...运行,为什么打包APK之后在手机上就连接不上socket 使用getChildByName()无法得到子节点对象 Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? 将list里的scro...
来源: Laya_社区 发布时间: 20171026
...,发现你们这个编译器一个bug,不能实现负负得正 使用getChildByName()无法得到子节点对象 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2018-08-22 14:20 浏览: 4504 关注: 15 人
来源: Laya_社区 发布时间: 20180729
... Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 使用getChildByName()无法得到子节点对象 问题状态 最新活动: 2018-02-06 16:34 浏览: 2332 关注: 2 人 qian • 2018-01-31 09:40 是放到bin下的 watsonsong • 2018-01-31 11:21 问题是在于Asset现在的...
来源: Laya_社区 发布时间: 20180130