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

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

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

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

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

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

....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

163. 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

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

... 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

165. matter中layasprite怎么改变图片大小? [ 45%]

...ite = roleImg;//将自定义的layaSprite传入role 调用 role.layaSprite.getChildAt(0).alpha = 0;//Image实例1变透明 这样子可以实时改变作为基底的roleImg子节点上的图片的大小等参数,至于为什么不直接改变roleImg的参数,这个我试过,并不行。 2018-0...

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

166. laya.d3.core.Camera_API3.0 [ 43%]

...CoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once reco...

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

167. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 42%]

...5, 0.5, 0.5); var aniSprite3d: Sprite3D = (<Sprite3D>this.layaMonkey.getChildAt(0)); //获取动画组件 var animator: Animator = (<Animator>aniSprite3d.getComponent(Animator)); //创建动作状态 var state: AnimatorState = new AnimatorState(); //动作名称 state.name = "run"; //动...

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

168. laya.d3.webxr.core.WebXRCamera_API3.0 [ 42%]

...CoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once reco...

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

169. laya.ui.Panel [ 41%]

...自身边界信息,从而避免比较消耗性能的计算。2.Sprite  getChildAt(index:int):Node[override] 根据子节点的索引位置,获取子节点对象。 Panel  getChildByName(name:String):Node[override] 根据子节点的名字,获取子节点对象。 Panel  getChildIndex(chi...

来源: laya_api 发布时间: 20170929

170. laya.ui.Panel [ 40%]

...矩形显示区域。 注意:计算量较大,尽量少用。 Sprite  getChildAt(index:int):Node[override] 根据子节点的索引位置,获取子节点对象。 Panel  getChildByName(name:String):Node[override] 根据子节点的名字,获取子节点对象。 Panel  getChildIndex(chi...

来源: Laya2.0_api 发布时间: 20190513