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

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

11. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 79%]

...背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.load...

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

12. 加载UI为什么总是加载白底 [ 78%]

...载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super)...

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

13. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 78%]

...g_url等于“”的时候,底层判断会走到这个接口下面 this.onLoaded(null)   load(url, type = null, cache = true, group = null, ignoreCache = false, useWorkerLoader = ILaya.WorkerLoader.enable) {             if (!url) {                 th...

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

14. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 77%]

...oad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码。代码是参照 htt...

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

15. android下layabox调用Laya.Texture2D.load报错 [ 75%]

...... 5771:8) 02-06 14:59:43.858  6545  6658 I LayaBox :     at ResInfo.onLoaded (http://10.0.1.72/game/dev-loca ... 913:61) 02-06 14:59:43.858  6545  6658 I LayaBox :     at EventHandler.__proto.runWith (http://10.0.1.72/game/dev-loca ... 711:59) 02-06 14:59:43.858  6545  6658 I LayaBox :...

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

16. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 74%]

...ader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.l...

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

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

... "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage.addChild(GamePage); } })(); 2018-10-29 添加评论 免...

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

18. 预加载结束之后还是报lose skin [ 73%]

...ya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this cla...

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

19. js进度,进度,js场景进度效果 [ 72%]

...a.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添加进度组件UI if (!this.Progress) { this.Progress = new Progress(); t...

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

20. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 72%]

...r.__proto._endLoad (http://www.xxx.com/LayaUISample.max.js:32270)     at onLoaded (http://www.xxx.com/LayaUISample.max.js:32249)     at Loader.<anonymous> (http://www.xxx.com/LayaUISample.max.js:32242)     at EventHandler.__proto.runWith (http://www.xxx.com/LayaUISample.max.js:716)    ...

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