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

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

41. 有些模型load之后,MeshSprite3D 共享材质个数为0,无法对材质进行操作 [ 69%]

...unction(sender:Sprite3D):void {       var ms:MeshSprite3D = _disObj3d.getChildByName("mod_CiKeZhuangBei_Body_03") as MeshSprite3D;       if(ms)       {           trace("length " + ms.meshRender.sharedMaterials.length);       }  }      输出: length 0   2017-01-01 添加评...

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

42. destroy 报错 [ 69%]

... {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {                     floor1.destroy();                     c...

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

43. 3d节点释放后,update仍然执行 [ 69%]

... dialog 自定义关闭效果,效果执行完,弹窗无法关闭 使用getChildByName()无法得到子节点对象 spine动画播放后图集错乱 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 怎样跨页面执行脚本命令? HttpRequest在firefox里面...

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

44. destroy 报错 [ 69%]

... {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {                     floor1.destroy();                     c...

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

45. laya.d3.core.light.LightSprite_API3.0 [ 68%]

...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...

来源: Laya3.0_api 发布时间: 20231115

46. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 68%]

...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...

来源: Laya3.0_api 发布时间: 20231102

47. 添加节点时报abort 41错误 [ 68%]

... layanative2 打包android平台 报错 btCollisionObject undefined 使用getChildByName()无法得到子节点对象 路径是对,但老是,调试控制台提示:错误,图片是IDE自带,也不显示 怎么讲layaAir里显示对象添加到matter.js里物理引擎世界...

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

48. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...某个名字子节点,通常会调用如下方法来获取子节点 getChildByName("xxx") /** * 根据子节点名字,获取子节点对象。 * @param name 子节点名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child...

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

49. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 68%]

...添加到舞台后     onEnable(): void {         let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D;         console.log(a,typeof(a))         let aa = a.addComponent(Laya.Rigidbody3D);     }   报错 TypeError: Cannot read properties of undefined (reading '__cl...

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

50. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 68%]

...{ var str: string = "path" + i; this.path.push(((<MeshSprite3D>scene.getChildByName('Scenes').getChildByName('Area').getChildByName(str))).transform.localPosition); } } 四、角色移动 角色移动,实际上就是在间隔很短时间内,改变角色位置。在我们示例中...

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