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

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

1391. 列表里的元素可以播放动画吗 [ 82%]

...  public function StorePage()         {             this.storelist.array = HostData.array //对list进行默认加载赋值             this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index            ...

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

1392. matter.js mouseconstraint在微信小游戏中无效 [ 82%]

... 'clientWidth',      get: function get() {      var ret = parseInt(this.style.fontSize, 10) * this.innerHTML.length;      return Number.isNaN(ret) ? this.width : ret;      }      }, {      key: 'clientHeight',      get: function get() {      var ret = parseInt(this.st...

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

1393. 真机测试时 有3d模型的界面尺寸就会错乱 [ 82%]

...句话  界面布局就会乱   请问是什么问题呢 let { x, y } = this._modelPnl.localToGlobal(new Laya.Point(0, 0))         let { x: x2, y: y2 } = this._modelPnl.localToGlobal(new Laya.Point(this._modelPnl.width, this._modelPnl.height))         let w = x2 - x         le...

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

1394. 关于使用资源版本控制加载出错问题 [ 82%]

... laya.net.ResourceVersion.enable(LoadingView_configUrl,Laya.Handler.create(this,this.onProLoadedBef),2);     _proto.onProLoadedBef =function() { var ProResArray = [ {url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS},                      ]; Laya.loader.load(ProRes...

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

1395. laya2.3 HTMLImageElement加载图片偶现崩溃 [ 82%]

...现是在HTMLImageElement类中的onloaded方法里,tex是null,同时this._url也是null。 蛋疼的是这里报错后,后续的其他loader凡是图片都失败。 附件 : --> 2019-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

1396. QQ小游戏平台射线方向,碰撞点错位 [ 82%]

...发现 屏幕坐标转世界坐标的时候 数据已经出错了     this._camera.viewportPointToRay(this.rayStartPos, this.ray);   这个时候 this.ray在小游戏平台的数据已经出错了 2019-11-09 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目...

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

1397. 有人遇到GetType 的问题吗? laya2.0 [ 82%]

...ove找到   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { a = this.m_moveBuffer.indexOf(a); this.m_moveBuffer[a] = null } ;  替换为:   box2d.b2BroadPhase.prototype.UnBufferMove = function(a) { let ba=0; while(true){ ba = this.m_moveBuffer.indexOf(a,ba); if(ba<0)break; this.m_m...

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

1398. 怎么加载网络上的图片 [ 82%]

...ttp://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 请问LayaAir...

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

1399. iOS环境浏览器使用mask黑屏 [ 82%]

...行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3...

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

1400. 更新LayaNative0.9.15需要注意的问题: [ 82%]

...下: public function GraphicsAni() { super(); if (Render.isConchNode) { this["drawSkin"] = function(skin:*):void { skin.transform || (skin.transform = Matrix.EMPTY); __JS__("this._addCmd([skin])"); this.setSkinMesh&&this.setSkinMesh( skin._ps, skin.mVBData, skin.mEleNum, 0, skin.mTexture,s...

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