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

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

231. 引擎1.7.6-beta,0.9.6的layanative,ios打包,真机iphone6, 发起websocket连接时失败 [ 51%]

...2482] NOTICE: IPV6 compiled in and enabled [1496561796:2482] NOTICE: libev support not compiled in [1496561796:2493] NOTICE: mem: platform fd map: 2048 bytes [1496561796:2500] NOTICE: mem: per-conn: 336 bytes + protocol rx buf 2017-06-04 15:36:36.368970+0800 XXXX[4079:795875] JSWebSocketDelegate::on...

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

232. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 51%]

...gin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.   load(url) {             var me = this;             url = URL.formatURL(url);             this.url = u...

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

233. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 51%]

...on(url); if (ext != "wav" && ext != "ogg") { alert("The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website document."); return null; } } if (_soundMuted) return null; } var tSound:Sound; if (!Browser.onMiniGame) { tSound= Laya.loader.get...

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

234. 使用layaide进行打包,提示如下错误。 [ 51%]

...错误。 Block-scoped declarations (let, const, function, class) not yet supported outside strict mode   网上搜索答案,有的说是因为在tsconfig中,将target调整成了es6就不可以运行了,但是我的代码使用了一些es6的特性,请问应该如何解决这个问题。 2...

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

235. as编译器1.7.5beta的问题 [ 50%]

...ns /** Formats a String in .Net-style, with curly braces ("{0}"). Does not support any * number formatting options yet. */ public function formatString(format:String, ...args):String { for (var i:int=0; i<args.length; ++i) format = format.replace(new RegExp("\\{"+i+"\\}", "g"), args[i]); return f...

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

236. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 49%]

...OP EVENT_MANAGER_END Accessors currentFrameRate referenceSpace sessionMode supportedFrameRates Methods destroy endXRRenderLoop event exitXR hasListener initializeAsync initializeSessionAsync initializeXRGL isSessionSupportedAsync off offAll offAllCaller on once resetReferenceSpace runXRRenderLoop se...

来源: Laya3.0_api 发布时间: 20231115

237. 关于声音(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 49%]

...是mp3,则会弹出提示信息,提示信息如下: `The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website document.` 这个时候需要把mp3转换成wav或者ogg格式。 ## 4.解决兼容性 如果你的项目在网页版本中音效...

来源: Laya2.0_文档 发布时间: 20210715

238. 1整天了,还是没解决加载本地文件问题 [ 48%]

...rWar/lesson8/bin/h5/res/atlas/gameUI.atlas. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. 另外 LayaIDE 编译打开经常只有黑屏,或者: 未定义任何生成任务。使用 "isBuildCommand" 在 tasks.json 文件中标记任务...

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

239. 用Geolocation获取地理位置信息(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 48%]

...search=geolocation)查看有哪些浏览器版本支持Geolocation。显示Supported表示支持。 ![1](img/1.png) ​ Geolocation返回的GeolocationInfo,包含以下信息: - `latitude` —— 维度(度)。 - `longitude` —— 经度(度)。 - `altitude` —— 相对于海平面的...

来源: Laya2.0_文档 发布时间: 20210715

240. 用Geolocation获取地理位置信息(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 48%]

...search=geolocation)查看有哪些浏览器版本支持Geolocation。显示Supported表示支持。 ![1](img/1.png) ​ Geolocation返回的GeolocationInfo,包含以下信息: - `latitude` —— 维度(度)。 - `longitude` —— 经度(度)。 - `altitude` —— 相对于海平面的...

来源: Laya2.0_文档 发布时间: 20210715