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

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

2231. HTMLDivElement组件,只显示一张图片的话,获取到的实际宽度为0 [ 70%]

...到的实际宽度为0 组件的内容如果为单纯的图片的话,如 this.htmlContent.innerHTML = <img src='emoji/hahaha.png'></img>; 这里如果去获取this.htmlContent.contextHeight的值会为0,而不是图片正确的高度。 请问这算bug吗。 附件 : --> 2019-11-20 ...

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

2232. Laya1.7.20如何加载3d资源? [ 70%]

...余参数 Laya.loader.create("res/Cube.ls",Laya.Handler.create(this,this.completeHandler));

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

2233. layaNative测试运行原生app时,laya3D解析动画处报错 [ 70%]

...下 class conchFloatArrayKeyframe {     constructor() {         this._nativeObj = new _conchFloatArrayKeyframe();     }     set time(value) {         this._nativeObj.setTime(value);     }     get time() {         return this._nativeObj.getTime();     } 这个 n...

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

2234. 一个EffectAnimation只能创建一个动画效果吗 [ 70%]

...nimations"]; if (aniData && aniData[0]){ var data=aniData[0]; this._setUp({},data); if (data.nodes && data.nodes[0]){ this._aniKeys=data.nodes[0].keys; } } } });

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

2235. 使用soundManager 播放声音时,每次都会出现下图的断点行为 [ 70%]

...出现下图的断点行为 SoundManager.playMusic(url, loop, new Handler(this, this.onComplete));跳过该断点也没有出现任何报错行为,并且能够正常播放,但是就是每次启动的调试的时候,都会出现在这个问题,比较烦而已,使用的版本是1.7.21   附...

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

2236. 1.7.17beta版QQ玩一玩导出后加载资源报错 [ 70%]

...用Laya.loader.load加载atlas的时候,在下图位置报错。 提示this._image.src是个undefine, this._image是有值的 附件 : --> 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同...

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

2237. 2.7.1 enbug: cannon碰撞trigger的enter和exit频繁触发 [ 70%]

...rigger的enter和exit频繁触发 注释掉_simulate(deltaTime)函数的  this._btDiscreteDynamicsWorld.callBackBody.length = 0;                 this._btDiscreteDynamicsWorld.allContacts.length = 0; 这两句就正常了 附件 : --> 2020-08-06 添加评论 免费帖 --> 分享 微博...

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

2238. native模式下webgl [ 70%]

...邀请: 与内容相关的链接 提交 2 个回复 大林 赞同来自: this.gl = laya.webgl.WebGL.mainContext; if (!this.gl) { throw new Error('Failed to get WebGL Context'); } gl的context取不到,为空。webgl的支持也显示为false 2018-09-10 0 0 分享 微博 QZONE 微信 皓雪树青 ...

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

2239. 微信小游戏下使用laya 自带的video报错 [ 70%]

... 在一个界面中加入如上代码  video 没有显示 点击空白  this.videoElement.play is not a function TypeError: this.videoElement.play is not a function   2019-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

2240. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 70%]

...Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接报错 2018-04-02 0 0 分享 微博 QZONE 微信 为什么被...

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