用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:compass:compass

Compass 指南针

class in UnityEngine

Description 描述

Interface into compass functionality.
指南针的接口。

Variables 变量

enabledUsed to enable or disable compass. Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable location updates by calling Input.location.Start().
启用或禁用指南针。注意,如果Input.compass.trueHeading是一个无效值,你必须调用Input.location.Start()启用位置更新。
headingAccuracyAccuracy of heading reading in degrees.
读取指向精度,单位度。
magneticHeadingThe heading in degrees relative to the magnetic North Pole. (Read Only)
相对于磁北极的航向,单位度。(只读)
rawVectorThe raw geomagnetic data measured in microteslas. (Read Only)
原始地磁数据,单位微特斯拉。(只读)
timestampTimestamp (in seconds since 1970) when the heading was last time updated. (Read Only)
当航向最后更新时的时间戳(自1970年以秒为单位)。(只读)
trueHeadingThe heading in degrees relative to the geographic North Pole. (Read Only)
相对于地理北极的航向度数。(只读)
script/unityengine/classes/compass/compass.txt · 最后更改: 2016/08/02 05:26 (外部编辑)