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

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

1051. laya.device.geolocation.Geolocation_API3.0 [ 78%]

...时才会返回信息。 Methods Static clearWatch clearWatch(id: number): void Defined in laya/device/geolocation/Geolocation.ts:96 移除watchPosition安装的指定处理器。 Parameters id: number Returns void Static getCurrentPosition getCurrentPosition(onSuccess: Handler, onError?: Handler): ...

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

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

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

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

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

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

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

1054. Shader预编译(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 78%]

...,分别编译出一个Shader) ```typescript public function compile(): void; ``` **预编译的基本原理:** ShaderVariantCollection记录了所有的ShaderVariant着色器变种,全局有一个Shader3D.debugShaderVariantCollection负责作为ShaderVariantCollection进行记录,只有通...

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

1055. laya.device.geolocation.Geolocation [ 78%]

...thods  MethodDefined By  Geolocation()Geolocation  clearWatch(id:int):void[static] 移除watchPosition安装的指定处理器。 Geolocation  getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation  watchPosition(onSuccess:Handler,...

来源: laya_api 发布时间: 20170929

1056. laya.device.geolocation.Geolocation [ 78%]

...thods  MethodDefined By  Geolocation()Geolocation  clearWatch(id:int):void[static] 移除watchPosition安装的指定处理器。 Geolocation  getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation  watchPosition(onSuccess:Handler,...

来源: Laya2.0_api 发布时间: 20190513

1057. 骨骼动画 如何可以对某一个骨骼进行换肤 [ 78%]

...eleton replaceSlotSkinByIndex(slotName:String, oldIndex:int, newIndex:int):void 替换插槽的贴图索引 replaceSlotSkinName(slotName:String, oldName:String, newName:String):void 替换插槽贴图名 setSlotSkin(slotName:String, texture:Texture):void 设置自定义皮肤   2016-09-27 0 2 分...

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

1058. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 78%]

...ERROR, this, this.errorHandler); } private openHandler(event: any = null): void { //正确建立连接; } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 } private closeHandler(e: any = null): void { //关闭事件 } private errorHandler(e: any = null): void { //连...

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

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

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

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

1060. laya.ani.AnimationPlayer [ 78%]

...verallDuration:int = 2147483647, playStart:Number = 0, playEnd:Number = 0):void 播放动画。 AnimationPlayer  playByFrame(index:int = 0, playbackRate:Number = 1.0, overallDuration:Number = 2147483647, playStartFrame:Number = 0, playEndFrame:Number = 0, fpsIn3DBuilder:int = 30):void 播放动画...

来源: Laya2.0_api 发布时间: 20190513