大约有 378 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
Laya_社区(103) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya2.0_文档(34) Laya_示例(12) Laya3.0_文档(8) Laya2.0_示例(1)
...ded = true; let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重复加载同一个lh资源文件,第二次加载后loadCompleted函数得到的资源是无效的。 请问这个怎么解决?另外Laya.Sprite3D.load可以在哪里发现缓冲资...
来源: Laya_社区 发布时间: 20200609
....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
...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
... 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
...ite = roleImg;//将自定义的layaSprite传入role 调用 role.layaSprite.getChildAt(0).alpha = 0;//Image实例1变透明 这样子可以实时改变作为基底的roleImg子节点上的图片的大小等参数,至于为什么不直接改变roleImg的参数,这个我试过,并不行。 2018-0...
来源: Laya_社区 发布时间: 20180827
...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
...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
...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
...自身边界信息,从而避免比较消耗性能的计算。2.Sprite getChildAt(index:int):Node[override] 根据子节点的索引位置,获取子节点对象。 Panel getChildByName(name:String):Node[override] 根据子节点的名字,获取子节点对象。 Panel getChildIndex(chi...
来源: laya_api 发布时间: 20170929
...矩形显示区域。 注意:计算量较大,尽量少用。 Sprite getChildAt(index:int):Node[override] 根据子节点的索引位置,获取子节点对象。 Panel getChildByName(name:String):Node[override] 根据子节点的名字,获取子节点对象。 Panel getChildIndex(chi...
来源: Laya2.0_api 发布时间: 20190513