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

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

11. (有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are [ 90%]

(有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are Failed to load file:///H:/WeChatQ1Snake/release/layaweb/v1.0.0/res/atlas/images.atlas: Cross origin requests are only supported for protocol schemes: http, ...

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

12. 游戏加载进度失效 [ 90%]

...dingUI(); //创建加载进度文本 var asset = [] asset[0] = { url: "res/atlas/run.json", type: Laya.Loader.ATLAS } asset[1] = { url: "res/bg.png", type: Laya.Loader.IMAGE } asset[2] = { url: "res/bg1.png", type: Laya.Loader.IMAGE } asset[3] = { url: "res/bg2.png", type: Laya.Loader.IMAGE } asset[...

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

13. 报错 Laya 的标识符中重复 [ 88%]

...aleMode = "showall"; Laya.stage.bgColor = "#232628"; var res = [ {url:"res/atlas/loading.json",type:Laya.Loader.ATLAS}, //{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE}, //{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE} ]; Laya.loader.load(res); showact(); })(); 2016-12-30 添加评论...

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

14. Laya.URL.basePath加载不到网络资源 [ 87%]

Laya.URL.basePath加载不到网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, th...

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

15. XMLHttpRequest cannot load [ 87%]

...42 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to ...

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

16. laya接入fairyGUI的时候资源加载方式? [ 86%]

...时候资源加载方式?     Laya.loader.load([{ url: "res/Basics_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/Basics.fui", type: laya.net.Loader.BUFFER }, { url: "res/MainMenu_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/MainMenu.fui", type: laya.net.Loa...

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

17. 进行预加载,每次进入游戏都会重新加载一次 [ 86%]

...预加载,每次进入游戏都会重新加载一次 ar images = ["res/atlas/" + lang + "/shz_images.png","res/atlas/shz_line.png", "res/atlas/" + lang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null,...

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

18. 关于资源加载的问题 [ 86%]

...ray = [{url : "games/game_13/shakeask_bg.jpg"}, {url : "res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。...

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

19. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 86%]

...oad([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ]...

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

20. 按钮加载皮肤丢失 [ 86%]

...信 匿名用户 赞同来自: 已经预加载了 skins.push( { url:"res/atlas/image1.json", type:Loader.ATLAS} );             skinsSecond.push( { url:"res/atlas/image.json", type:Loader.ATLAS });             skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE })...

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