大约有 194 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...onventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给其他模型使用,这...
来源: Laya2.0_文档 发布时间: 20210715
...e.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给...
来源: Laya2.0_文档 发布时间: 20210715
...被折叠 要回复问题请先登录 发起人 ludwig 相关问题 使用getChildByName()无法得到子节点对象 求解:2D项目中加载View,Laya.Scene.load应该如何使用? LayaAir IDE 1.7.15 beta 九宫格在ie11下有缝隙,希望得到关注和解决! 请教:粒子的官...
来源: Laya_社区 发布时间: 20170804
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20171202
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20181112
...y 'btCollisionObject' of undefined 图集打包找不到图集文件 使用getChildByName()无法得到子节点对象 关于场景编辑器的,用的最新版引擎 问题状态 最新活动: 2025-05-15 11:08 浏览: 7422 关注: 3 人 Heured • 2025-05-15 12:56 有这么个用例, 父节点...
来源: Laya_社区 发布时间: 20250504
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20180724
...e.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄像机的逻辑操作....... } } } ``` 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scene的getChildByName(“Main Camera...
来源: Laya2.0_文档 发布时间: 20210715
...克隆对象,统计面板的显存和内存就会显示成负数 使用getChildByName()无法得到子节点对象 js开发微信小游戏,如何调用手机相册,选择图片操作 请问如何获取组件的子节点的数量? 无法对载入的材质操作。sharedMaterials的length...
来源: Laya_社区 发布时间: 20220224
...blic updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_...
来源: Laya_社区 发布时间: 20170215