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

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

1. XMLHttpRequest cannot load [ 100%]

...HttpRequest 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 load: ...

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

2. 图集版本加载问题 [ 93%]

... var obj:any = {                             url:"res/atlas/comp.atlas?version=1.0.0",                             type: Loader.ATLAS                       };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/comp.pn...

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

3. 微信小游戏资源总是加载旧的资源 [ 91%]

...楼主是不是设置了Laya.URL.basePath?   假设我们要加载图集comp.json,并且设置了Laya.URL.basePath = "http://www.abc.com/"。   因为资源管理的version.json文件是通过相对路径映射的,所以图集comp.json在version.json中类似{"comp.json":"compksd92svb.json"...

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

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

...致内存过高 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler....

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

5. 引擎自带的图集图片丢失问题 [ 87%]

...集图片丢失问题 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的buttoncheckbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> ...

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

6. 请教——layabox如何加载多个图集 [ 85%]

请教——layabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

7. 粒子中引用的图片能合图吗 [ 84%]

...tage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {...

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

8. LayaRender渲染含有多个part的Body存在Bug [ 84%]

...  例如:如下代码,创建两个body:partApartB,然后创建comp,将这两个body组合起来。测试代码如下: function createBody() { var size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot...

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

9. 请教下微信小游戏的内存数据缓存? [ 82%]

...01-22 10:37 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.lo...

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

10. 请问laya里如何解析json,似乎AS3的不太一样。 [ 81%]

...qi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析AS3的是一样的   2016-10-27 2 0 分享 微博 QZ...

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