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

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

21. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 78%]

... tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D; //查找节点 var bonePoint:Sprite3D = findChild(monkey,"bonepoint"); //将盒子精灵添加到找到骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 `...

来源: Laya2.0_文档 发布时间: 20210714

22. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 78%]

...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...

来源: Laya2.0_文档 发布时间: 20210715

23. 父物体旋转会导致子物体世界坐标系不正确?(附demo) [ 77%]

...时候,我在代码中动下面圆盘transform.positionthis.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.ge...

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

24. 微信小游戏运行导出项目时候报错:Scene: the .lh file root type must be Scene [ 77%]

...(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; console.log(tiger); var animator:La...

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

25. 如何方便删除Sprite3D对象,释放其关联资源? [ 77%]

...显存和内存就会显示成负数 怎么获取对象坐标 使用getChildByName()无法得到子节点对象 怎么讲layaAir里显示对象添加到matter.js里物理引擎世界里 分享:LayaAir下如何获取图集下小图资源? 编辑了图片 执行代码说加载...

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

26. getChildByName这个方法应该怎那么使用?为什么我一直报错 [ 77%]

getChildByName这个方法应该怎那么使用?为什么我一直报错 我想通过导出来3D场景找到主相机,用是Scene.getChildByName这个方法。一直报错,找不到这个方法??? 2018-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

27. 通过getChildByName找到dialog节点使用show方法后, 再次getChildByName查找, 结果为null [ 77%]

通过getChildByName找到dialog节点使用show方法后, 再次getChildByName查找, 结果为null let dialog = new laya.ui.Dialog();  dialog.name = 'Dialog' parentNode.addChild(dialog);    let childNode = parentNode.getChildByName('Dialog'); childNode.show();   console.log(parentNode.get...

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

28. 关于3d碰撞检测 [ 77%]

...结果一直是-1 相关代码:const field: Laya.MeshSprite3D = this.scene.getChildByName("stadium").getChildByName("field") as Laya.MeshSprite3D;//拿到地板 const sprite3d1MeshCollider: Laya.MeshCollider = field.addComponent(Laya.MeshCollider) as Laya.MeshCollider; sprite3d1MeshCollider.mesh = f...

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

29. 使用getChildByName()无法得到子节点对象 [ 77%]

使用getChildByName()无法得到子节点对象    page2._list.renderHandler = new Handler(this, onRender);         function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index > json.length)retu...

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

30. 添加继承自Laya.Sprite3D脚本节点移除时调用了两次onDisable [ 76%]

...btCollisionObject undefined 图片添加点击事件 有不生效 使用getChildByName()无法得到子节点对象 怎么讲layaAir里显示对象添加到matter.js里物理引擎世界里 报两个bug 请有解决时间节点了或解决了麻烦回复下 怎样跨页面执行脚...

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