大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...时才会返回信息。 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
...); // 成功获取位置后触发 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
...); // 成功获取位置后触发 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
...,分别编译出一个Shader) ```typescript public function compile(): void; ``` **预编译的基本原理:** ShaderVariantCollection记录了所有的ShaderVariant着色器变种,全局有一个Shader3D.debugShaderVariantCollection负责作为ShaderVariantCollection进行记录,只有通...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...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
...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
...); // 成功获取位置后触发 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
...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