大约有 831 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
Laya_社区(671) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(31) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...是个剪裁的容器,没有list一样的handler函数,你自己通过for循环去修改对应item的属性值即可! cry_11858 • 2017-03-30 11:50 @cuixueying:谢谢
来源: Laya_社区 发布时间: 20170330
...r,toType) { //转为utf8编码字符串 let str = ''; for (var i = 0; i < arr.length; i++) { str += String.fromCharCode(arr[i]); } return toType === 'json' ? JSON.parse(decodeURIComponent(escape(str))) : decodeURIComponent...
来源: Laya_社区 发布时间: 20191211
...解决 Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted. 附件 : --> 2020-05-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...
来源: Laya_社区 发布时间: 20200512
...events some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info. 代码: this.m_scene = Laya.loader.getRes(this....
来源: Laya_社区 发布时间: 20190730
...报undefined错误 /** * @internal * 清掉播放完成的音频 * @param force 是否强制删掉所有的声音channel */ private _onAniSoundStoped(force: boolean): void { for (let len = this._soundChannelArr.length, i = 0; i < len; i++) { let channel = this._soundChannelArr[i]; if (channel.isS...
来源: Laya_社区 发布时间: 20230727
... has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. 我也根据提示退出chrome进程启动了,没用啊。。。求你们用mac多搞搞..希望哪位有经验教育一下我谢谢。。。。 ...
来源: Laya_社区 发布时间: 20191113
...rivate function createCity(worldMapData:Object):void { var itemObj:Object; for(var i:int = 0 ; i < worldMapData.items.length ; i++) { itemObj = worldMapData.items[i]; var city:City = new City(); city.x = itemObj.x; city.y = itemObj.y city.staticData = itemObj; city.mouseEnabled = true; _container...
来源: Laya_社区 发布时间: 20180327
... var toPlays; toPlays = this.__toPlays; len = toPlays.length; var tParams; for (i = 0; i < len; i++) { tParams = toPlays[i]; if (tParams[2]) { if (!(tParams[2]).isStopped) { this.play(tParams[0], tParams[1], tParams[2]); } else { tParams[2].audioBuffer = this.audioBuffer; } } } this.__toPlays.len...
来源: Laya_社区 发布时间: 20201014
...leng:int = heros.length; var item:HeroResolveItem; var heroInfo:SHeroInfo; for (var i:int = 0; i < leng; i++) { heroInfo = heros[i]; if (_heroItemList[i] == null) { item = new HeroResolveItem(this.onSelectedHeroChange); _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.add...
来源: Laya_社区 发布时间: 20170321
...DBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0, 0); oriDBArr[i] = g; ...
来源: Laya_社区 发布时间: 20170224