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

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

181. 游戏系怎么把一些共用的功能独立出来 [ 74%]

...JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...

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

182. Laya.loader.load和new Laya.Loader区别? [ 74%]

Laya.loader.load和new Laya.Loader区别? let json:any = Laya.loader.getRes(this._data.url); if(json) { return; } let load:Laya.Loader = new Laya.Loader(); 这么写 频繁加载会一直报资源重复加载 但是我 Laya.loader.load(xxxxxxxxx) 频繁加载就没事 请问这两者的区别 我...

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

183. Laya.loader.load() 是怎么发送请求的? [ 74%]

Laya.loader.load() 是怎么发送请求的? 如题,请问Laya.loader.load() 通过啥调用 HttpRequest的send方法的啊? 2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: ...

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

184. 怎么清理掉 Sprite3D 相关的缓存资源 [ 74%]

... Sprite3D 相关的缓存资源 通过 lh格式 生成的 Sprite3D, Laya.loader.create(_path, Handler.create(this,OnComplete),null,Sprite3D); 要怎么清理掉他的所有缓存资源? 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

185. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 74%]

...EFFECT_PATH_3D+url;             var itemComplete:Sprite3D =  Laya.loader.getRes(_path);             if(itemComplete == null || itemComplete.loaded == false){                 var groupName:String = null;                 if(isGroup == true){           ...

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

186. 分享:Graphics下cmds命令流的使用! [ 74%]

...ge { import laya.display.Sprite; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser...

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

187. tween 的 update 怎么是回调一次!!! [ 74%]

...有变化,怎么回事啊? 网络send 不回调?什么情况? Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 http 请求 once 的 回调参数,如何传递和接收? Laya.Handler.create 加载图片...

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

188. 创建图集的问题 [ 74%]

...中: //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(v...

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

189. Laya.loader.load 如何同时加载图片数组以及json图集 [ 74%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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

190. 粒子中引用的图片能合图吗 [ 74%]

...Laya.Stage.ALIGN_MIDDLE; Laya.stage.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)); } fun...

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