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

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

231. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 53%]

...dEventListener('deviceorientation', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation);  连接打开方式都由微信扫一扫打开,safari不支持此demo运行 查找到资料地址: https://caniuse.com/#search=deviceorientation ios测试微...

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

232. 用插件导出unity制作的模型时,不支持skinned mesh renderer么? [ 53%]

...导出时报错: NullReferenceException: Object reference not set to an instance of an object r.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, Boolean A_2) r.b () r.b (System.String A_0) LayaAir3D.exportResource (Boolean isDebug, Int32 Platformindex, System.String lastname) LayaAir3D.E...

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

233. 有关Laya3D碰撞检测疑问 [ 53%]

...{ //从屏幕空间生成射线 this.point.elements[0] = Laya.MouseManager.instance.mouseX; this.point.elements[1] = Laya.MouseManager.instance.mouseY; this.camera.viewportPointToRay(this.point, this.ray);  //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(this.ray, this._o...

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

234. ios苹果手机,同时播放声音出现巨大杂音 [ 53%]

...置单例的引用方式,方便其他类引用         GameMain.instance = this;         //加载场景文件         this.loadScene("main_scene.scene");     }          setup(){         Laya.SoundManager.playMusic("music/d1.mp3", 1, new Laya.Handler...

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

235. 用ts开发,从编辑模式发布后,代码模式里layaUI.max.all.ts会报错 [ 52%]

...' severity: '错误' message: 'Cannot find name 'loadUI'. Did you mean the instance member 'this.loadUI'?' at: '16,13' source: 'ts' 2017-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自...

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

236. laya as发布玩一玩到Xcode工程,编译报错 [ 52%]

...ction. (In 'this.ctx.transform(a,b,c,d,tx,ty)', 'this.ctx.transform' is an instance of RectTransform)]: line = 6253, column = 21, sourceURL = /var/containers/Bundle/Application/2DE21169-C5AF-439A-9F39-D30D42DC9162/PublicBrickEngineGame.app/Res/laya.js, info2=alert open, info3= 2018-10-09 添加评...

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

237. HttpRequest有一定几率触发error事件 Status:0 [ 52%]

..."Content-Type","application/json","Authorization", "Bearer " + PlayerModel.Instance.token]);   大部分时候正常  但有20%的几率会触发error事件回调,收到的message为"failed Status:0 text:"   只在本次运行的第一次调用会出现,如果第一次没有触发error则后...

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

238. laya能像u3d那样给3d精灵设置layer吗?Sprite3D有个layer的属性,设置了没有效果,有没有人用过? [ 51%]

...amera.CLEARFLAG_DEPTHONLY; 3d精灵的设置: var eff:Sprite3D = resCtrl.instance.getEff(resUrl); eff.layer = Layer.getLayerByNumber(10); scene.addChild(eff); 2018-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

239. 发布项目的时候出现TS2663错误,是在UI编辑自动生成的文件里面,是什么原因? [ 51%]

...x.all.ts(59,13): error TS2663: Cannot find name 'loadUI'. Did you mean the instance member 'this.loadUI'? 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 watsonsong 赞同来自: 刚刚测试了一下,...

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

240. 2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null [ 51%]

...ew Main (http://127.0.0.1:43542/game/js/bundle.js:267:90)   LESS是LayaGL.instance的属性,报错位置在WebGLContext.__init__ ();中 断点发现 在类Render 的 initRender 方法中 getWebGLContext 总返回null;   附件已上传 附件 : --> wxgame.zip 2022-06-16 添加评论 免费...

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