大约有 584 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)
Laya_社区(435) Laya2.0_文档(39) Laya_示例(27) Laya3.0_api(24) Laya3.0_文档(22) Laya2.0_示例(21) Laya2.0_api(10) laya_api(6)
...n; playState._normalizedPlayTime=1.0; if (scripts){ for (var i=0,n=scripts.length;i < n;i++) scripts[i].onStateExit(); } return; } 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 bpmf_d 赞同来自: ...
来源: Laya_社区 发布时间: 20190112
... return btn; } private onLoaded(){ for (let index = 0; index < this.btnArr.length; index++) { this.createButton(this.btnArr[index],this.nameArr[index],this._onclick,index); } this._canvas = window.document.getElementById("layaCanvas") as HTMLCanvasElement; this.aimSp = new Sprite(); this.aimSp.size(...
来源: Laya2.0_示例 发布时间: 20241001
...y<any> = e.touches; if (touches && touches.length == 2) { this.preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); ...
来源: Laya_社区 发布时间: 20180301
...页代码。每页显示四个,也就是每次给list.array赋值一个length为小于等于4的数组。
来源: Laya_社区 发布时间: 20180820
...count==0){ Toast.makeText( VGUtil.context , "可播放次数"+count, Toast.LENGTH_SHORT).show(); }else{ if(!ADNative.isAdOpen(adname)) { ADNative.openAd(adname); } } // 静态函数回调通知js端 ExportJavaFunction.CallBackToJS(VGUtil.class,"showVideoAd",1); }回调js端 没反应,这是什么...
来源: Laya_社区 发布时间: 20190524
...出插件报错 laya.d3.js:21857 Uncaught TypeError: Cannot read property 'length' of null at Animator.__proto._getAvatarOwnersByClip (laya.d3.js:21857) at Animator.__proto._getAvatarOwnersByClipAsync (laya.d3.js:21944) at Animator.__proto.addClip (laya.d3.js:22458) at Sprite3D.__proto._parseCustomC...
来源: Laya_社区 发布时间: 20180103
... let str = ''; for (var i = 0; i < arr.length; i++) { str += String.fromCharCode(arr[i]); } return toType === 'json' ? JSON.parse(decodeURIComponent(escape(str))) : decodeURIComponent(escape(str)); } //转换成byte functi...
来源: Laya_社区 发布时间: 20191211
...lt;Resource> = resouList.slice(); for (var i:int, n:int = tempResouList.length; i < n; i++) { res = tempResouList[i]; if (!res.lock && res._referenceCount === 0) res.destroy(); } } } else { for (var k:String in _idResourcesMap) { res = _idResourcesMap[k]; if (!res.lock && res._...
来源: Laya_社区 发布时间: 20190126
...+ 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
...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