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

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

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

...下: 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

142. 图片切换后显示两个状态 [ 70%]

... loadImage() 的 complete 对应函数中加了一句 myImg.source = Laya.loader.getRes("2.png"); 手动赋值 texture 就可以了。 Monica • 2017-06-18 11:21 @Loongman:给Image设置皮肤的话直接用skin即可,之后切换皮肤也只需要切换skin

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

143. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 69%]

...script //初始化引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc")...

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

144. 微信小游戏环境下,load的参数ignoreCache设置为true时,并没有重新下载资源 [ 69%]

...11-23 15:27 浏览: 2527 关注: 2 人 刘大明 • 2018-11-21 19:41 Laya.loader.load("https://xxxx/image.png", new Laya.Handler(this, this.imageLoaded), null, Laya.Loader.IMAGE, 0, false, "", true); 代码是这样的,但是这个url的资源覆盖以后,还是不会发生...

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

145. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 69%]

js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...

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

146. 求助。layabox 加载url 图片 [ 69%]

...图片大小? ios14系统下 blendMode='lighter' 图片异常 请问下loader如何强制加载一个文件,避免浏览器的缓存 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 问题状态 最新活动: 2017-12-20 18:09 浏览: 3359 关注: 3 人

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

147. canvas下资源清理的问题 [ 69%]

...aya.display.Stage;     import laya.events.Event;     import laya.net.Loader;     import laya.ui.Button;     import laya.utils.Handler;     import laya.utils.Stat;          import ui.TaskUI;          import view.TestView;          public class LayaUISample {      ...

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

148. Panel初始化BUG [ 69%]

...ecovery • 2021-11-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc&quo...

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

149. 微信小游戏设置网络动态加载无法显示 [ 69%]

...3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),nul...

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

150. 本地调试加载本地图片都报错 [ 69%]

... 'btCollisionObject' of undefined IDE1.7.8 json图集加载问题 请问下loader如何强制加载一个文件,避免浏览器的缓存 laya怎么跨域加载图片 LayaAir 库文件加载速度慢 问题状态 最新活动: 2017-07-21 18:02 浏览: 3050 关注: 2 人 cuixueying • 2017-07-21 16...

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