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

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

41. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 75%]

...游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,f...

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

42. 深入理解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

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

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

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

44. 载入场景报错 [ 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

45. 我二进制资源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

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

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

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

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

50. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...e.runNodeScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的...

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