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

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

651. 请教如何实现完美的LoopList?尝试了下总是有倒带的卡顿动作隐藏不掉 [ 67%]

...卡顿,而且会显示倒带 private onLoop(){              if(this.WheelList.visible==true)             {                 this.WheelList.set_visible(false);                 this.WheelList2.set_visible(true);                 ...

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

652. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 67%]

...reate(this, (success: boolean) => {                 if (!success) {                     console.error("OPPOSANS-R ttf 字体加载失败");                 } else {                     console.log("OPPOSANS-R ttf ...

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

653. worker.js 使用问题 [ 67%]

...exture2D.<anonymous> (laya.d3.js:21347)     at Shader3D.__proto._uniform_sampler2D (laya.d3.js:28631)     at Shader3D.__proto.uploadSpriteUniforms (laya.d3.js:28751)     at RenderQueue.__proto._render (laya.d3.js:4070)     at Scene.__proto._renderScene (laya.d3.js:26518)     at Camer...

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

654. 我想移动容器来实现前进的动画,但是移动不了。这里的y有问题 但是又不知道改成什么 [ 67%]

...背景图到了下面不可见的位置,立即调整位置到最上面 if(this.bg1.y+this.y>=852){ this.bg1.y-=852*2 } //如果背景2到了最下面 if(this.bg2.y+this.y>=852*2){ this.bg2.y-=852*2 } }    })(); 2019-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

655. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 67%]

...因为项目都是4.X以上甚至5.X以上了),正解应该是1   // if (typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3)) { if (typeof this._oDrawing.makeImage == "function") {   2020-04-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

656. FontClip问题 [ 67%]

... < sz;i++){   var index=this._indexMap[this._valueArr.charAt(i)];   if (!this.sources[index])continue ;   texture=this.sources[index];   if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight);   else this.gr...

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

657. 最新版本IDE,如何获取http返回的json数据 [ 66%]

...a = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData), "post", "json", ["content-type","application/json"]);     function processHandler(data){ console.log (data) } function completeHandler(e){ console.log (xhr.data) }; function errorHandler(data){ console.log (...

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

658. spine骨骼动画如何获取某个骨骼的坐标 [ 66%]

...]; var boneY:Number = tParentTransform.y + curOriginalData[tStartIndex++]; if (tSrcBone.name == boneName) { arrCoords.push(boneX); arrCoords.push(boneY); break; } if (_templet.tMatrixDataLen === 8) { tStartIndex++; tStartIndex++; } } }   return arrCoords; }[/i] 2020-10-13 0 0 分享 微博 QZONE ...

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

659. 射线形状检测shapeCastAll返回的检测结果只第一次有效 [ 66%]

...orm, convexPosFrom); bt.btTransform_setOrigin(convexTransTo, convexPosTo); if (fromRotation) { bt.btQuaternion_setValue(convexRotFrom, -fromRotation.x, fromRotation.y, fromRotation.z, -fromRotation.w); bt.btTransform_setRotation(convexTransform, convexRotFrom); } else { bt.btTransform_setRotation(co...

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

660. rev-path的nodejs库被修改了,导致版本管理失效 [ 66%]

...链接 - https://github.com/sindresorhu ... ex.js 'use strict'; const modifyFilename = require('modify-filename'); module.exports = (pth, hash) => { if (!(pth && hash)) { throw new Error('`path` and `hash` required'); } return modifyFilename(pth, (filename, ext) => `${filename}-${hash}...

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