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

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

1. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 100%]

loading界面实现图片预加载后,创建Sprite执行loadImage出错 1、没有使用IDE; 2、仿照sample里面的 Loader_ProgressAndErrorHandle.js 构建了一个 Loading界面。 3、所有图片均成功载入 4、切换界面时,进入游戏界面,构造Sprite出错。       切...

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

2. loadImage 加载图片,怎么清理当前正在加载的图片 [ 97%]

loadImage 加载图片,怎么清理当前正在加载的图片 用 loadImage 加载很多图片,然后在某个时机需要清理这些加载的图片,用了    Laya.loader.cancelLoadByUrl(_urlVo.url); Laya.loader.clearTextureRes(_urlVo.url); Laya.loader.clearRes(_urlVo.url)    但是在...

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

3. Image.loadImage 方法加载问题 [ 95%]

Image.loadImage 方法加载问题 调用 setPublicSpacesData 这个方 传入参数 里面有每一个图片的名字 三个不同的图片 只能加载两个 但是三个同样的图片没问题     this.publicSpaceList = new Laya.List(); this.publicSpaceList.itemRender = gamepublicspaceitem.Pu...

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

4. 如何使用graphics.loadImage加载图片资源的时候,如何判断加载失败? [ 92%]

如何使用graphics.loadImage加载图片资源的时候,如何判断加载失败? 伪代码: this.avatar.graphics.loadImage(url, 0, 0, 0, 0, __complete);这个时候,如果我的url为空或者为一个不存在的图片地址,我如何判断它加载失败呢? 我尝试使用了这...

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

5. 2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug [ 92%]

...rl(url, type, thisLoader) {    if (MiniAdpter.isZiYu) {    thisLoader._loadImage(url, false);    return;    }    if (MiniFileMgr.isLocalNativeFile(url)) {    thisLoader._loadImage(url, false);    return;    }    if (!MiniFileMgr.isLocalNativeFile(url) && !MiniFileMgr.getFil...

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

6. 2.3.1的laya.wxmini.js有个地方写错了 [ 92%]

...写错了 _transformImgUrl方法里最底的一行代码,   thisLoader._loadImage(url, false); 应该为: thisLoader._loadImage(url, true);   该错误会导致微信小游戏上,设置了URL.basePath的时候,部分图片会加载不到   ————————————————...

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

7. 飞机大战地图滚动报错,麻烦看下? [ 91%]

...Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");     box.addChild(bg1);     bg2 = new laya.display.Sprite();     bg2.loadImage("res/bg1.png");     bg2.pos(650, 0);     box.addChild(bg2);     Laya.timer.frameLoop(1, this, bg_loop()); } f...

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

8. 2.0版API“loadImage”改了吗? [ 89%]

2.0版API“loadImage”改了吗? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){                 trace("complete!!");   为何没有complete出现??  另外,有没有1.0和2.0 API更新对照表? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

9. 用Loader加载完atlas,然后使用animation播放问题 [ 88%]

...oader.ATLAS, true); 加载完成后 this._ani = new Animation(); this._ani.loadImages(这里传入解析好的urls) 会提示重复加载 为什么我都加载完了 还需要用ani的loadImages 有没有别的办法 我不想用animation.loadAtlas这个方法 这个方法检测不到加载失败 20...

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

10. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 87%]

...w(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = new Sprite(); sprite.graphics.drawCircle(100, 500, 50, "#0000ff"); //sprite.graphics.scale(2, 2); this.addChild(sprite); sprite...

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