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

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

371. Laya.Animator没有动画播放完事件 [ 55%]

...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

372. Sprite-屏幕截图 [ 55%]

... 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

373. Touch接口缺少stageX,stageY [ 55%]

...y&lt;any&gt; = e.touches;             if (touches &amp;&amp; touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);             ...

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

374. 这样一个ui怎么做 [ 55%]

...页代码。每页显示四个,也就是每次给list.array赋值一个length为小于等于4的数组。

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

375. 二次开发 异步回调没反应 [ 55%]

...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

376. unity导出插件报错 [ 55%]

...出插件报错 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

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

...   let  str  =  '';       for  (var  i  =  0;  i  &lt;  arr.length;  i++)  {             str  +=  String.fromCharCode(arr[i]);       }   return toType === 'json' ? JSON.parse(decodeURIComponent(escape(str))) : decodeURIComponent(escape(str)); } //转换成byte  functi...

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

378. 请问我看错了吗??文档问题 [ 55%]

...lt;Resource&gt; = resouList.slice(); for (var i:int, n:int = tempResouList.length; i &lt; n; i++) { res = tempResouList[i]; if (!res.lock &amp;&amp; res._referenceCount === 0) res.destroy(); } } } else { for (var k:String in _idResourcesMap) { res = _idResourcesMap[k]; if (!res.lock &amp;&amp; res._...

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

379. 关于HttpRequest [ 55%]

...+ param[prop] + "&amp;"; // } // 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

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

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

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