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

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

31. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...一<code>Position</code>参数的回调处理器。 * @param onError 可选的。带有错误信息的回调处理器。错误代码为Geolocation.PERMISSION_DENIED、Geolocation.POSITION_UNAVAILABLE和Geolocation.TIMEOUT之一。 */ static getCurrentPosition(onSuccess: Handler, onError:...

来源: Laya3.0_文档 发布时间: 20251010

32. 加载-错误处理和进度 [ 86%]

...irIDE让项目开发更高效。let numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas...

来源: Laya2.0_示例 发布时间: 20251209

33. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 85%]

...)[0], "./node_modules/.bin/tsc.cmd"); child_process.execFile(tscurl, cmd, (err, stdout, stderr) => { if (err) { console.log(err, '\n', stdout, '\n', stderr); } start(err); }); 复制代码[/code] 改为[code] let cmd = "tsc -b " + tsConfigUrl; child_process.exec(cmd, (err, stdout, stderr) => {...

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

34. movieclip destroy 后重新加载失败 [ 85%]

...>getMovieClipAtlas: res/swf/bomb.swf true Failed to load resource: net::ERR_FILE_NOT_FOUND [warn]Retry to load: bomb/2.png Failed to load resource: net::ERR_FILE_NOT_FOUND Failed to load resource: net::ERR_FILE_NOT_FOUND Failed to load resource: net::ERR_FILE_NOT_FOUND Failed to load resource: ne...

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

35. 用谷歌获取经纬度报错? [ 85%]

...etCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) ...

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

36. [LayaNative3]LayaNative在安卓上播放音效后会一直输出报错日志 [ 85%]

...错日志 processAudioBuffer(154):obtainBuffer(850)returned 858 = 850 + 8 err 0 processAudioBuffer(154):obtainBuffer(882)returned 8 =8 + 0 err 0 processAudioBuffer(154):obtainBuffer(882)returned 8 = 8 + 0 err 0 processAudioBuffer(154):obtainBuffer(874)returned 0 = 0 + 0 err -11 processAudioBuffer(15...

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

37. 图集修改以后加载的问题 [ 85%]

...   错误看着就是很不舒服吧。   Failed to load resource: net::ERR_FILE_NOT_FOUND [file:///E:/f/laya/layaBattle/bin/resource/unit/element2.png]   [warn]Retry to load: resource/unit/element2.png laya.core.js:19110 Failed to load resource: net::ERR_FILE_NOT_FOUND [file:///E:/f/laya/layaBat...

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

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

...etCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) ...

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

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

...etCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) ...

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

40. 用Geolocation获取地理位置信息(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 85%]

...etCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) ...

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