大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...ative下怎么获取渲染句柄? var gl = laya.webgl.WebGL.mainContext; if (!gl) { throw new Error('Failed to get WebGL Context'); } 2018-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同...
来源: Laya_社区 发布时间: 20181029
...回复 cuixueying 赞同来自: 是的,判断物体是否在舞台上,if(obj . x<0||obj.y<0||obj.x>Laya.stage.width||obj.y>Laya.stage.height) 2017-08-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****180 相...
来源: Laya_社区 发布时间: 20170824
...aAir页面跳转到不是LayaAir引擎开发的页面,是否能够跳转 if(window.conch) { window.conch.setExternalLink("http://p01-web.312725.com/i/?login.weixin&quot;); } 此方法跳转之后,原来的页面没有关闭 2017-12-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20171226
...Bounds()方法未定义是咋回事? 我想做个2D的碰撞检测,用 if(sp1.getBounds().intersects(sp2.getBounds())){ trace("发生碰撞了"); b=true; } 总是提示 "Cannot read property 'getBounds' of undefined" 是咋回事? 2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180122
... console.log("position = ",box.transform.position); if (index == 1) { Laya.timer.once(1000,this,()=>{ this.setAngle(); }) } } /** * 设置角度 ...
来源: Laya_社区 发布时间: 20201120
...数,刷新吗 var itemlevel = this.tiledMap.getLayerByName(layerName); if (itemlevel == null) { return; } itemlevel.addChild(); 2019-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20190612
... 然后切换场景 ,是不是要在 onDestroy(): void { if (this.btn) { // 清理所有以 this 为 caller 的事件 this.btn.offAllCaller(this); } },,问下下Deepseek,说是laya不会自动清理事件的,需要手动。这...
来源: Laya_社区 发布时间: 20260114
...错误 public function _derivePhysicsTransformation(force:Boolean):void { if(_nativeColliderObject==null)return;//我加了这个 _innerDerivePhysicsTransformation(_nativeColliderObject.getWorldTransform(), force); } 附件 : --> 2019-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20190119
...oader.IMAGE); const info = atlasManager.getTextureInfo(texture.bitmap.id); if (info) { console.log(`纹理位于图集 ${info.largeTextureIndex}`); console.log(`UV 坐标: ${info.uv}`); console.log(`是否已合并: ${info.merged}`); } 通过 URL 获取纹理信息 //接口 getTextureInfoByUrl(url: ...
来源: Laya3.0_文档 发布时间: 20260131
AnimationClip类BUG提交 AnimationClip类源代码第85行为:if (__JS__("Number.isFinite(t0) && Number.isFinite(t1)")) {//TODO:是否可以优化不计算 其中Number.isFinite()方法存在兼容性问题,不是所有浏览器都支持,IE就不支持,要兼容所有浏览器可...
来源: Laya_社区 发布时间: 20180106