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

大约有 119 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

41. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 74%]

....ts', onwarn:(waring,warn)=>{ if(waring.code == "CIRCULAR_DEPENDENCY"){ console.log("warnning Circular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ tsconfig:workSpaceDir + "/tsconfig.json", check: true, //Set to false to avoid doing any diagnos...

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

42. 微信小游戏分包实战(ActionScript-小游戏适配文档-微信小游戏) [ 73%]

...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...

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

43. 载入场景报错 [ 73%]

...nH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; console.log("load"); Laya.loader.create("TestScene/TestScene.ls", Laya.Handler.create(this, this.LoadSceneComplete)); } LoadSceneComplete() { console.log("finish") let scene: Laya.Scene = Laya.loader.getRes("TestScene/TestSce...

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

44. 我二进制资源load之后,为什么通过getRes获取不到。 [ 73%]

...ndler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',cfg, Laya.Loader.groupMap); } 2018-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没找到...

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

45. list 加载动画为什么实现的效果会错乱掉? [ 73%]

...addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); }     我想实现的效果是   设置每个特效宽高都为80 * 80   然后一...

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

46. Laya.Sprite loadImage 参数问题 [ 72%]

...teImg(280,50); //添加红色颜色滤镜效果 img.filters = [redFilter]; console.log('b'); } /**创建灰色滤镜位图**/ private createGrayFilter():void{ //颜色滤镜矩阵,灰色 var colorMatrix:any = [ 0.3086, 0.6094, 0.0820, 0, 0, //R 0.3086, 0.6094, 0.0820, 0, 0, //G 0.3086, 0.6094, 0.082...

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

47. localRotationEulerY旋转位置错误 [ 71%]

...rigidBody.mass = 10;         this.arr.push(box);         console.log("position = ",box.transform.position);         if (index == 1) {             Laya.timer.once(1000,this,()=>{                 this.setAngle();             })...

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

48. Image.loadImage 方法加载问题 [ 70%]

...oData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log( this._publicSpaceData.icon );    this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) );    this.addChild( this.bg );    this.addChild( ...

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

49. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 70%]

... super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &...

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

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

...; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else i...

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