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

大约有 483 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

161. Box2D使用Destory join报错? [ 72%]

...用两次destroyJoint  ;box2d.ENABLE_ASSERTS&&box2d.b2Assert(0<this.m_jointCount); 这句话会报错 2018-11-06 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 提供复现精简demo 2018-11-07 0 0 分享 微博 QZONE 微信 kura 赞同来自: 心塞 ,难道移除sprite时需...

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

162. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 72%]

..."], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白...

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

163. 资源版本问题 [ 72%]

...E_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) }...

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

164. 3d物理引擎在android真机上无法选取(app) [ 72%]

...选取(app) 版本:2.13.1 用这个方法检测不到3d射线碰撞 this._scene.physicsSimulation.rayCast(this.ray,this.outHitResult);   附件是引擎生成的简单的3d物理demo,简单改了几行。     补充说明: h5没问题,是app无法选中。我把native和layaair都升...

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

165. 引擎是否可以针对支持webgl2的机型做自动切换为webgl [ 71%]

...对支持webgl2的机型做自动切换为webgl 部分机型下会出现 this._gl.createVertexArray is not a function. (In 'this._gl.createVertexArray()', 'this._gl.createVertexArray' is undefined);at requestAnimationFrame callback function   这种情况这边判断是不支持webgl2,是否又...

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

166. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 71%]

...示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayData=this.currSlotData...

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

167. UI 组件中list自动滚动到list底部或者顶部 [ 71%]

...片段 MyChat.prototype.ScrollToBottom=function(caller,callback){ var page=this.msgList.length - 8; if(page < 0)page=0; page +=1; if(caller) this.list.tweenTo(page,0,Handler.create(caller,callback)); else this.list.tweenTo(page,0); } 2019-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

168. Laya.Event.CLICK,第二次无法出发click事件 [ 71%]

...Event.CLICK,第二次无法出发click事件 xxx.on(Laya.Event.CLICK, xxx, this.RecordA);这个放在第一次执行for循环里,第一次for循环时,click是可以进this.RecordA这个函数里,在第二次执行for循环,点击click就不能进this.RecordA这个函数里 2018-04-10 添加...

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

169. 三个图好像无法绑定不同的事件? [ 71%]

...2.png',100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CL...

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

170. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 71%]

....TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { } } new Gam...

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