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

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

231. 克隆sprite [ 64%]

...maxY: number = 0 | 0;             for (let i: number = 0; i < arr.length; i++) {                 element = arr[i];                 if (element) {                     tempImg = new Laya.Image(GameResPath.mapPath + this.currMapID + "/" + element.src);           ...

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

232. matter.js mouseconstraint在微信小游戏中无效 [ 64%]

...() {      var ret = parseInt(this.style.fontSize, 10) * this.innerHTML.length;      return Number.isNaN(ret) ? this.width : ret;      }      }, {      key: 'clientHeight',      get: function get() {      var ret = parseInt(this.style.fontSize, 10);      return Number....

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

233. 关于HttpRequest [ 63%]

...+ param[prop] + "&"; // } // paramStr = paramStr.substring(0, paramStr.length - 1); return paramStr; }; var obj: Object = { name: "stone", list: [1, 2, 3], items: [ { id: 1, count: 10 }, { id: 2, count: 0 } ] }; // var s: string = JSON.stringify(obj); var s:string = CommonUtils.urlEncode(obj); v...

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

234. skeleton的_onAniSoundStoped清除的时候有时会报undefined错误 [ 63%]

...niSoundStoped(force: boolean): void { for (let len = this._soundChannelArr.length, i = 0; i < len; i++) { let channel = this._soundChannelArr[i]; if (channel.isStopped || force) { !channel.isStopped && channel.stop(); this._soundChannelArr.splice(i, 1); // SoundManager.removeChannel(_chan...

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

235. Laya.Timer.clear 的源码可能有个问题。 [ 63%]

...handler) { var keyTarget = handler.key; for (var i = 0, n = this._handlers.length; i < n; i++) { var handler = this._handlers; if (handler.caller === caller && handler.key === keyTarget) { this._map[handler.key] = null; handler.key = 0; handler.clear(); } } } } [/i] 2020-08-19 添加评...

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

236. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 63%]

... 0 ? url.substr(0, idx + 1) : ""; for (var i:int = 0, len:int = toloadPics.length; i < len; i++) { toloadPics[i] = folderPath + toloadPics[i]; } } else { //不带图片信息 toloadPics = [url.replace(".json", ".png")]; } for(i = 0;i<toloadPics.length;i++) { var tempAtlasPngUrl:String = toload...

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

237. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 63%]

...width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.setTo(tex2d); } 附件 : --> demo.zip 2021-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

238. [LayaAirIDE3]3.0.10 父容器做了一次scale缩放操作,子节点的label文字变模糊加粗 [ 63%]

...竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null 获得节点在stage中的坐标 问题状态 最新活动: 2024-01-12 19:32 浏览: 2929 关注: 2 人

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

239. loop 我想在回调里暂停,然后在开启 [ 63%]

...= 0;  Laya.timer.loop( 500, this, function () {       i = i < (arr.length - 1) * 6 ? i + 1 : 0;       this.noticeList.scrollBar.value = i * 5        if (i % 6 == 0) {         console.log("在这里停止", i)        }       else{ console.log("在这里开始", i)      ...

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

240. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 63%]

...ty = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize = 0; var items = ; var success = true; for (var i = 0; i < itemCount; i++) { var item = arr[i]; if ((typeof item == 'string')) item = {url: item, type: type, size: 1, priority: pr...

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