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

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

2471. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 67%]

...包和资源 ``` onConfigLoaded(): void { Laya.stage.on(Laya.Event.CLICK, this, this.toPage2) } toPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加载资源的...

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

2472. 键盘事件监听时间间隔问题 [ 67%]

...什么问题要如何解决呢?谢谢! Laya.stage.on(Event.KEY_DOWN, this, this.onKeyDown);   // 回调时间时隔 move right1: characterX: 200, currTime: 1486458463.82 move right1: characterX: 204, currTime: 1486458464.338 move right1: characterX: 208, currTime: 1486458464.357 move right1: ch...

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

2473. 2.0版本,Particle2D is not a constructor [ 67%]

...ader.load([{url:"res/213.part",type:Laya.Loader.JSON}],Laya.Handler.create(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.Particle2D(pg); } }213.part是设计模式下生成   附件 : --> 2018-11-20 添加评论 免费帖 --> 分享 ...

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

2474. 为什么list的datasoure赋值之后不能滑动 [ 67%]

...i < 10 ; i++) { score_data.push({ju_num:{text:i},score1:{text : i}}); } this.score_list.dataSource = score_data; this.score_list.vScrollBarSkin = "";(如果不加滚动条,是能显示出来值;但是加了这句后 就没有内容了)

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

2475. LayaAir开发笔记(1)五十音图连连看 [ 67%]

...true; copyright.pos(20, g_stat_heiht - 35); copyright.on(Laya.Event.CLICK, this, function() { window.location.href = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,这个...

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

2476. 使用fairygui加载网络图片资源时,laya.core.js中的drawTexture会报错 [ 67%]

...re.js中, if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }执行到这段时,报了tex.once不是一个function的错,但是Texture继承自EventDispatcher,有once这个方法的啊。 http://thirdqq.qlogo.cn/g?b=sdk&k=JZWZibBicdrSCia...

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

2477. UNITY3D 导出的lh格式文件 加载后显示正常,里面的动画无法加载,一直报错。 [ 67%]

...与内容相关的链接 提交 3 个回复 biaofengzheng 赞同来自:   this.m_sp3d = Laya.loader.getRes(this.m_data.url);   此处是加载的IH 模型   报错位置 使用 使用 2017-07-06 0 0 分享 微博 QZONE 微信 biaofengzheng 赞同来自: 已解决   单独一个蒙皮网格导入...

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

2478. 预加载图集文集在小游戏端导致内存过高 [ 67%]

...", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 使用这种方法动态加载资源导致内存很高,该怎么办? 和官网推荐的material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL...

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

2479. [LayaAirIDE3]getTextWidth报null is not an object (evaluating \'i.width\') [ 67%]

...为null 请问object层中添加的sprite怎么添加点击事件 Warning!,this class[MiniAdpter] already exist: Object {init: } Cannot read property 'displayObject' of null Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object alertexception info: [Typ...

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

2480. 报错,这不是个构造函数 "StartPage is not a constructor" [ 67%]

... StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atla...

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