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

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

211. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 55%]

... onLoading, null, false), null, 1, true, sGameMark, false); Laya.loader.on(Event.ERROR, this, onError); 预加载资源添加了完成 进度 和失败监听  在手机上有时加载进度会卡在某个数值不动 不会触发加载失败 也不触发加载完成  请问有没有什么方法可...

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

212. 背景音乐来回切换报错 [ 55%]

...mainSound:Laya.SoundChannel = null;         this.btn_sound.on(Laya.Event.CLICK,this,function(){             dreamsSound = null;             if(mainSound == null){                 Laya.loader.load("res/main.mp3",Laya.Handler.create(this,function(){   ...

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

213. 为何用MovieClip加载Swf会造成H5卡死,且不报错? [ 55%]

...ovieClip(); Laya.stage.addChild(mc); mc.on("complete", this, function (evt:Event){ trace("swf complete"); }); mc.load("../../res/swf/mapFlash.swf"); 为何加了这段代码,整个H5就如“死机”,点浏览器的刷新都不管用? 也不抱错? 2017-01-18 添加评论 免费帖 --> 分...

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

214. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 55%]

...nifests/vM7nH0Kl.m3u8');//加载m3u8源 hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } } ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的...

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

215. layaair ide 2.0.0 beta2 读取.lh文件报错 [ 55%]

...a.d3.js:15158) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252) at EventHandler.__proto.runWith (laya.core.js:1127) at Loader.__proto.event (laya.core.js:883) at Loader.__proto.complete (laya.core.js:14959) at Loader.__proto.onLoaded (laya.core.js:14927) at EventHandler.__proto.runWith (laya...

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

216. 为什么全局属性赋值后,在另外个函数中调用会自动变成undefined [ 55%]

...me("Main Camera") as Camera;                 Laya.stage.on(Event.MOUSE_DOWN, this, onMouseDown);                 trace(camera);             }))         }          public function onMouseDown():void {             trace(camera); ...

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

217. 关于纹理的显示问题 [ 55%]

...js:701)     at ResInfo.loadComplete (LayaUISample.max.js:18073)     at EventHandler.__proto.runWith (LayaUISample.max.js:702)     at ResInfo.__proto.event (LayaUISample.max.js:471)     at LoaderManager.__proto._endLoad (LayaUISample.max.js:17932)     at Loader.onLoaded (LayaUISample.max.js...

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

218. unity导出插件报错 [ 55%]

...nAsynLoaded (laya.d3.js:27847) at ResInfo.onLoaded (laya.core.js:13560) at EventHandler.__proto.runWith (laya.core.js:1170) at ResInfo.__proto.event (laya.core.js:943) 2018-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

219. 请引擎开发人员不要在用这种写法了 [ 55%]

...et property 'skin' of null at ProgressBar._skinLoaded (laya.ui.js:3741) at EventHandler.runWith (laya.core.js:998) at ResInfo.event (laya.core.js:1039) at LoaderManager._endLoad (laya.core.js:19366) at Loader.onLoaded (laya.core.js:19335) at EventHandler.runWith (laya.core.js:998) at Loader.event (l...

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

220. Laya同时加载图片和引用图片的资源时会报错 [ 55%]

...时加载图片和引用图片的资源时会报错,应该是Loader那边Event.COMPLETE事件的问题            Laya.loader.create([             { url: "res/Sword 10 Blue Gold.lmat", type: Laya.Loader.MATERIAL},             { url: "res/Sword 10 Blue ...

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