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

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

111. zip更新模式缓存是怎么读取的?? [ 73%]

... onEvent('downloadOK'); //let md5 = calcmd5(fs_readFileSync(localfile)); //console.log('md5='+md5); let zip = new ZipFile(); if(zip.setSrc(localfile)){ zip.forEach((id,name,dir,sz)=>{ if(!dir){ let buf = zip.readFile(id); //console.log("update "+name); let fid = window.appcache.hashstr('/'+name);...

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

112. 获取的ui页面里下on事件无法触发 [ 73%]

...meStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitmap: AutoBitmap, _text: Text, _st...

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

113. LayaAir 如何读取资源中的txt文件中的内容 [ 72%]

...何读取资源中的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并不是文本...

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

114. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 72%]

...; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true时,是否可穿透。默认值为false...

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

115. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 72%]

...false); 我可以看到模型transform.rotation值的变化,         console.log(this.needle.transform.rotation); 但是,我查看         console.log(this.needle.transform.rotationEuler); 却是却是 undefined。 2017-12-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

116. 小图集内存较大,且不能清理掉 [ 72%]

...aphics.clear(); _s.destroy(true); _s.removeSelf(); _s=null;      console.log(Laya.loader.getRes(_url)); Loader.clearRes(_url,true); console.log(Laya.loader.getRes(_url)); } 2017-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

117. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 72%]

..._ddz/animation/ddz_figures_landlord.sk"); }    private onError(): void { console.log("error"); }  private parseComplete(): void { console.error("地主加载完成"); this.isFinish = true; }  public getArmature():Laya.Skeleton{ if(!this.isFinish){ return null; } let armature = null; if(this.mArm...

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

118. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...@param e 事件对象 */ private onHttpRequestError(e: any = null): void { console.error("请求失败:", e); this.logger.text = "请求失败,请重试。\n"; } /** * 请求进度改变触发的回调 * @param e 事件对象 */ private onHttpRequestProgress(e: any = null): void { //进度的百...

来源: Laya3.0_文档 发布时间: 20251010

119. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 72%]

...ect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e.nativeEvent.offsetX ); console.log( e.nativeEvent.offsetY ); }   我设置了一个矩形,并给这个矩形增加了一个点击事件。 我发现e.nativeEvent.offsetX和e.nativeEvent.offsetY返回相对...

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

120. 微信小游戏,实现监听前后台切换 [ 72%]

....onShow(this.resumeGame) wxHelper.onHide(this.pauseGame) } resumeGame () { console.log('resumeGame') } pauseGame () { console.log('pauseGame') } onDestroy () { wxHelper.offHide() wxHelper.offShow() } }   2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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