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

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

131. unity里导出的骨骼动画无法读取 [ 51%]

...mator动画组件                 zombieAnimator = (role3D.getChildAt(0) as Sprite3D).getComponentByType(Animator) as Animator;                 zombieAnimator.clip.islooping = true;                            });         }   res.rar...

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

132. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 50%]

...ate(new Vector3(-20, 13, 0)); //获取动画组件 pangziAnimator = pangzi.getChildAt(0).getComponent(Animator) as Animator; //AnimationClip的加载要放在Avatar加载完成之后 AnimationClip.load("res/threeDimen/skinModel/BoneLinkScene/Assets/Model3D/PangZi-Take 001.lani", Handler.create(null,...

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

133. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 50%]

...); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加载资源完成后,通过 Laya.loader.getRes("LayaScene_effect/effect.lh") 是不会触发Event.LOADED的。但是有的模型却...

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

134. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 50%]

...这都需要从加载的模型中去获取子对象,我们可以通过 **getChildAt()、getChildByName()** 方法去获取子对象,这与2D引擎获取子对象方法一样。 下面我们来加载一个场景的.ls文件,然后获取它的子对象。在获取子对象之前,建议打开.l...

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

135. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 49%]

...hild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRend...

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

136. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 49%]

...addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.mes...

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

137. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 49%]

....addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.mesh...

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

138. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 49%]

...ded = true;              let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重复加载同一个lh资源文件,第二次加载后loadCompleted函数得到的资源是无效的。 请问这个怎么解决?另外Laya.Sprite3D.load可以在哪里发现缓冲资...

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

139. 3D粒子特效初始化卡顿 [ 48%]

...e3D = Laya.loader.getRes(_path) as Sprite3D; if(item != null){ item = item.getChildAt(0).clone(); Instantiate(item); } } private function Instantiate(item:Sprite3D):void { effect3D = item; //effect3D.active = true; this.addChild(effect3D); //console.hylog("_path:",_path); SetUVEffect(effec...

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

140. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 48%]

... this.mapFloor.numChildren - 1; i > -1; i--){ var floor = this.mapFloor.getChildAt(i); //检测人物是否踩在地板上面了 if(floor.checkHit(this.player.x, this.player.y)){ //人物如果踩到地板了 就把人物的坐标设置到地板上面 this.player.y = floor.y; // this.player.jumpR...

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