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

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

121. Laya.URL.basePath加载到网络资源 [ 68%]

...网络资源 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, this.onLoaded2));   Laya.URL.ba...

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

122. Animation._loadAnimationData方法内释放.ani文件的调用位置[ 67%]

...._loadAnimationData方法内释放.ani文件的调用位置对 如图,Loader.clearRes(url)在没加载完.ani就调用了,应该在Laya.loader.load的的完成回调内调用 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

123. 批量预加载如果是图片或者声音类型,会触发加载错误事件 [ 67%]

...如果是图片或者声音类型,会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并会触发错误事件。   Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...

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

124. 图集打包后使用Texture显示,项目整个已经传上来了 [ 67%]

...成的回调里去获取你的texture并drawTexture // 程序入口 import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push(...

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

125. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 67%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...

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

126. getTimer 函数可以替代函数 [ 67%]

...码重用和公共函数的疑问,在TS里怎么使用? 请问laya.net.Loaderlaya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数可以...

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

127. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 67%]

...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...

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

128. 数量较多的资源加载问题 [ 66%]

...答案。。。。。。。 我默认你问的是用什么接口, Laya.loader.load 进行预加载。 加载成功之后的回调中写初始化方法。。 2018-07-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zxcmht310 相关问...

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

129. 加载场景成功时,并是场景上所有资源都已加载完 [ 66%]

...尴尬了,但或许我有没用对的地方。。。     另外:SceneLoader为啥加一个progress啊,非常实用的功能,现在得自己load list一下 http://ask.layabox.com/question/39354       2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

130. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 66%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),1...

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