Class LocationFollowController
public sealed class LocationFollowController : MonoBehaviour
- Inheritance
-
object
Object
Component
Behaviour
MonoBehaviour
LocationFollowController
Fields
DotSizePx
[Tooltip("Blue-dot diameter in pixels.")]
public float DotSizePx
Field Value
- float
FollowPosition
[Tooltip("Keep the map centered on the current position.")]
public bool FollowPosition
Field Value
- bool
Map
[Tooltip("Map that shows and optionally follows the position.")]
public ScreenMapView Map
Field Value
- ScreenMapView
RotateWithHeading
[Tooltip("Rotate the map with the device compass heading.")]
public bool RotateWithHeading
Field Value
- bool
SimSpeedMps
[Tooltip("Simulated walking speed, meters per second.")]
public double SimSpeedMps
Field Value
- double
SimulateInEditor
[Tooltip("Editor only: walk in a circle near the map center. Ignored in player builds, which report no fix instead of faking one.")]
public bool SimulateInEditor
Field Value
- bool
Properties
Current
public LatLon Current { get; }
Property Value
- LatLon
HasPosition
public bool HasPosition { get; }
Property Value
- bool
PermissionDenied
public bool PermissionDenied { get; }
Property Value
- bool
ServiceStatus
public LocationServiceStatus ServiceStatus { get; }
Property Value
- LocationServiceStatus
StatusText
public string StatusText { get; }
Property Value
- string
UsingSimulatedPosition
public bool UsingSimulatedPosition { get; }
Property Value
- bool
Methods
DescribeStatus(LocationServiceStatus, bool, bool)
public static string DescribeStatus(LocationServiceStatus status, bool enabledByUser, bool simulating)
Parameters
status LocationServiceStatus
enabledByUser bool
simulating bool
Returns
- string
ShouldSimulate(LocationServiceStatus, bool)
public static bool ShouldSimulate(LocationServiceStatus status, bool simulationAllowed)
Parameters
status LocationServiceStatus
simulationAllowed bool
Returns
- bool
ShouldUseLiveFix(LocationServiceStatus)
public static bool ShouldUseLiveFix(LocationServiceStatus status)
Parameters
status LocationServiceStatus
Returns
- bool