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

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

701. [LayaNative 2.0]请问android单机包怎么热更新的 [ 52%]

...+ 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr);第一句是从哪里获取netssetsid资源。这里我运行之后 Downloaded http://127.0.0.1/laya/update/a ... 0.0.1 s=0 l=0 /home/layabox/LayaBox/lvfulong/c...

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

702. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 52%]

...); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附件 : --> Spine_Click.rar 2017-08-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...

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

703. 关于官方技术文档中《微信飞机大战》实战开发中监听界面是否关闭 [ 52%]

...OSE,this,onClose); /** * 界面关闭 */ private function onClose():void { console.log("GameStart界面关闭!"); //从舞台移除自己 this.removeSelf(); //只加载一次,因此直接消毁自己 this.destroy(); }onClose方法并没走到,控制台没输出,请问是什么问题呢 2018-...

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

704. [LayaAirIDE3]layaAir 3.14 打包淘宝小部件报错 [ 52%]

...有的图片不打包? 如图 web端打包发布后能不能自动删除console.log 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 打包android版本 点击返回键会提示“再次点击后退键退出游戏”,如果去掉这个提示 3.0.7版本打包v...

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

705. [LayaAir3]LayaAir3打android平台运行有Load script error 错误 [ 52%]

... 内容是没有错误 url也是对的window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); } 附件 : --> 2024-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

706. sprite添加click监听事件反应迟钝 [ 52%]

...th.random() * Laya.stage.width; var y = Math.random() * Laya.stage.height; console.log(x + "" + y); drawyuan.pos(x,y); return drawyuan; } 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...

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

707. 教你微信小游戏使用服务端gzip数据。 [ 52%]

... '请求地址',   responseType: 'arraybuffer',    success(res) {     console.log(fromCharCode(Pako.inflate(new Uint8Array(res.data))));   } }); //处理中文 function decodeUTF8(arr,toType)  { //转为utf8编码字符串   let  str  =  '';       for  (var  i  =  0;  i  <  ...

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

708. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 52%]

....onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885245902 0.6876280737704918 0.7501024590163934 0.8125768442622952...

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

709. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 52%]

...orker = new Worker("my_task.js"); myWorker.onmessage = function (oEvent) { console.log("Called back by the worker!\n"); }; myWorker.postMessage("start"); // start the worker. ``` ​ 新建一个my_task.js文件,代码如下 ```javascript self.addEventListener('message', function (e) { var xmlreq ...

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

710. 取色器组件 · LayaAir3.0文档 · LAYABOX [ 52%]

...rivate onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-11-29 17:33:41 img{cursor:pointer}

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