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

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

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

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

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

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

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

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

384. 二次开发 异步回调没反应 [ 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

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

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

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

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

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

388. 关于HttpRequest [ 55%]

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

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

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

390. 关于DrawCall和Shader数量的疑问 [ 55%]

...):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.addChild(city); } }[/i]当city里面的名称...

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