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

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

1081. [LayaAir3]自定义字体在移动浏览器不起作用 [ 53%]

...     console.log("预加载字体结束>>>>", obj)       if (config.H_SCREEN) {         this.loadTopBarUI()       } else {         this.loadHomeUI()       }     }), Laya.Handler.create(this, (resProg: number) => { // 第三个参数:进度回调       console...

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

1082. Uncaught Can not find class Laya.Text [ 53%]

...解决的 2021-01-21 0 0 分享 微博 QZONE 微信 唐波 赞同来自: if (!Laya.ClassUtils.getClass('Laya.Text')) { Laya.ClassUtils.regClass('Laya.Text', Laya.Text); } 2021-04-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Fico 相...

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

1083. 求绘制遮罩会引起黑屏的解决办法 [ 53%]

...value; target = parseInt(360 * value - 90);  this.vmask.graphics.clear(); if(target == -90){ //this.vmask.graphics.drawPie(0, 0, 20, -90, -90, "#000000"); this.vmask.graphics.drawPie(0, 0, 20, -90, -89, "#000000"); }else{   this.vmask.graphics.drawPie(0, 0, 20, -90, 0, "#000000"); } }   上面这...

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

1084. Native IOS下获取陀螺仪数据为0 [ 53%]

...n, info: Laya.RotationInfo):void         {             if (info.alpha === null)             {                      console.log("当前设备不支持陀螺仪。");                      //去掉陀螺仪的移动                      L...

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

1085. 龙骨动画残影 [ 53%]

...               }     private _play()     {         if (this._curAction >= this._hero.getAnimNum())         {             this._curAction = 0;         }                              this._hero.play(this._curAction, false); ...

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

1086. Laya native 有时候会卡在logo这个页面 [ 53%]

...index.js 里面有处理加载js失败的代码 t.onerror = function () { if (window["onLayaInitError"]) { window["onLayaInitError"]("Load script error"); } };自己重载  onLayaInitError函数进行提示吧 2018-06-13 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你是用layaplayer调...

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

1087. layabox 程序 访问index.html?key='aaa' key参数启动类怎么获取? [ 53%]

...;]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) { return (r[2]); } else { return null; } } 2018-06-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****207 相关问题 请问有没有方法...

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

1088. 发布QQ玩一玩,使用VScode,windows环境下打包问题。 [ 53%]

...       __proto._setClipChanged=function(){             if (!this._clipChanged){                 this._clipChanged=true;                 this.callLater(this.changeClip);             }         } 2018-10-27 0 0 分享 微博 QZONE ...

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

1089. Touch接口缺少stageX,stageY [ 53%]

...         var touches: Array<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[...

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

1090. IDE时间轴动画帧数乱序导致的bug [ 53%]

...bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }   FrameAnimation初始化时_sortIndexFun 方法没有被赋值   导致_calculateKeyFrames中 tKeyFra...

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