用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:locationservice:locationservice

LocationService 位置服务

class in UnityEngine

Description 描述

Interface into location functionality.

进入位置功能的接口。

Variables 变量

isEnabledByUserSpecifies whether location service is enabled in user settings.
是否在用户设置中启用位置服务。
lastDataLast measured device geographical location.
设置测量的最新地理位置。
statusReturns location service status.
返回位置服务状态。

Public Functions 公共函数

StartStarts location service updates. Last location coordinates could be.
开始更新位置服务。是最新的位置坐标。
StopStops location service updates. This could be useful for saving battery life.
停止位置服务更新。这可用于延长电池寿命。
script/unityengine/classes/locationservice/locationservice.txt · 最后更改: 2016/08/02 05:32 (外部编辑)