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

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

41. 性能测试-卡通人物2 [ 59%]

...i].update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprite = Laya.Sprite; export class Performan...

来源: Laya_示例 发布时间: 20260130

42. 性能测试-卡通人物2 [ 58%]

...i].update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel()...

来源: Laya2.0_示例 发布时间: 20260130

43. 发布微信小游戏,屏幕显示不正常 [ 58%]

...戏那边排查说是laya.core.min.js里a.oTransform="matrix("+n.toString()+")"这里有问题

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

44. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 58%]

...rn prototype["__class__"]; } var constructorString = prototype.constructor.toString().trim(); var index = constructorString.indexOf("("); var className = constructorString.substring(9, index); Object.defineProperty(prototype, "__class__", { value: className, enumerable: false, writable: true }); ret...

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

45. 怎么打包压缩几个JSON文件有没比较好的做法大家推进下 [ 58%]

...press();                          var str:String = bytes.toString();             bytes.clear();             bytes = null;                          var data:Object = JSON.parse(str);     2017-09-08 0 0 分享 微博 QZONE 微信 为什么被折...

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

46. Animation如何获取图集单帧实际宽高 [ 58%]

...Child(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 qian 赞同来自: 麻烦上传一下demo看一下 ...

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

47. 保存数据的数组在回调的时候变为undifine [ 58%]

...ist[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console.debug("创建的实例的数量::"+_heroItemList.length); } private function onSelectedHeroChange():void { _curSelectedHeroId = []; _curSelectedHeroProp = []; console.debug("当前保存的实例:...

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

48. LayaBox如何多点触摸? [ 57%]

...cted function onTouchBegin(event:TouchEvent):void { log(event.touchPointID.toString()); } cuixueying • 2016-01-23 11:17 你的demo在原生浏览器下是可以正常运行的,如果要跑加速器请参考layabox所给的参数即可!!! babybamboo • 2016-01-22 16:41 可以了,谢谢 c...

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

49. 关于使用CryptoJS加解密的问题。 [ 57%]

...议使用__JS__辅助,如下 __JS__('var md5 = CryptoJS.MD5("Message").toString(CryptoJS.enc.Hex)'); __JS__('console.log("md5 = %s", md5)'); 2017-01-16 0 0 分享 微博 QZONE 微信 youhong168 赞同来自: 我是TS的项目。这是工程包。还是不行,能帮忙看看是哪里出问题了...

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

50. HttpRequest在网页上和APP上表现不一致 [ 57%]

...ent.ERROR, this, (e: any)=>{console.log("http timeout test: error " + e.toString());});     console.log("http timeout test: start post");     hr.send(url, "", "post"); });   如上代码,这个url地址会在收到请求sleep10秒然后返回一个504错误码。 在网页上运行时,ti...

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