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

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

21. Laya.loader.load方法报错 [ 87%]

Laya.loader.load方法报错 这里为什么报错,一直通过不了编译?同样代码,2.1没问题 2.4报错? 附件 : --> 2020-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关链接 提交 1 个回复 Laya_Aaron 赞同...

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

22. load 跨域请求 [ 87%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

23. xxx.load() [ 87%]

...能不能做优化一下,直接填数据也可以用。 比如原来Laya.loader.load('role.atlas',..) 。这样也可以Laya.loader.load({"frames":{atack0.png:...}},..) ; 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关链接 ...

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

24. 调用Laya.loader.load()方法加载资源,怎么获取所加载资源大小. [ 86%]

调用Laya.loader.load()方法加载资源,怎么获取所加载资源大小. 我想获取到加载资源网速,现在思路是 通过new HttpRequest().send()方法完成事件参数arraybuffer来获得所加载资源大小,然后根据加载时间计算出网速。但是这样会...

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

25. 资源加载后 回调 [ 85%]

...语句加载资源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在问题是,同一个资源第二次加载时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第...

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

26. Laya.loader.load 加载时长10秒,progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 85%]

Laya.loader.load 加载时长10秒,progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 这个查了下,好像确实不能获取到加载进度。能不能用websocket或其它方法来模拟。因为是合并后图集,用文件个数来统计没啥卵...

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

27. 我二进制资源load之后,为什么通过getRes获取不到。 [ 84%]

...下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.lo...

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

28. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 84%]

... 柠檬_酸 赞同来自: 今天也遇到了哈,new Texture就行,Laya.loader.load试了还是 不行 var Texture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 ...

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

29. 图集动画没有显示 [ 84%]

...it(1600, 1400, Laya.WebGL); var AniConfPath = 'res/atlas/cloud.json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; an...

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

30. 在加载多个资源时候,加载进度异常 [ 83%]

在加载多个资源时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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