Class GeoLocationModule
Inheritance
ScriptableSettingsBase
ScriptableSettingsBase<GeoLocationModule>
ScriptableSettings<GeoLocationModule>
GeoLocationModule
Implements
IModuleDependency<MARSDatabase>
IModuleDependency<SlowTaskModule>
IModuleBuildCallbacks
IModule
Inherited Members
ScriptableSettings<GeoLocationModule>.instance
ScriptableSettingsBase<GeoLocationModule>.k_HasCustomPath
ScriptableSettingsBase<GeoLocationModule>.s_Instance
ScriptableSettingsBase<GeoLocationModule>.GetFilePath()
ScriptableSettingsBase.k_PathExceptionMessage
ScriptableSettingsBase.OnLoaded()
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Providers
Assembly: Unity.MARS.dll
Syntax
[ScriptableSettingsPath("Assets/MARS/UserSettings")]
[ModuleOrder(1073741824)]
[MovedFrom("Unity.MARS")]
public class GeoLocationModule : ScriptableSettings<GeoLocationModule>, IModuleDependency<MARSDatabase>, IModuleDependency<SlowTaskModule>, IModuleBuildCallbacks, IModule
Fields
MaxLatitude
Declaration
public const float MaxLatitude = 90
Field Value
Type | Description |
---|---|
float |
MaxLongitude
Declaration
public const float MaxLongitude = 180
Field Value
Type | Description |
---|---|
float |
Properties
continuousUpdates
When enabled, the location service will continue to poll for updates after acquiring initial location
Declaration
public bool continuousUpdates { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
SetCurrentLocationAndUpdateTrait(GeographicCoordinate)
Given a GeographicCoordinate, immediately update the GeoLocationModule and MARS database with it
Declaration
public void SetCurrentLocationAndUpdateTrait(GeographicCoordinate location)
Parameters
Type | Name | Description |
---|---|---|
GeographicCoordinate | location |
TryGetGeoLocation(out GeographicCoordinate)
Declaration
public bool TryGetGeoLocation(out GeographicCoordinate coordinate)
Parameters
Type | Name | Description |
---|---|---|
GeographicCoordinate | coordinate |
Returns
Type | Description |
---|---|
bool |
TryStartService()
Declaration
public bool TryStartService()
Returns
Type | Description |
---|---|
bool |
Events
GeoLocationChanged
Declaration
public event Action<GeographicCoordinate> GeoLocationChanged
Event Type
Type | Description |
---|---|
Action<GeographicCoordinate> |
Implements
Unity.XRTools.ModuleLoader.IModuleDependency<T>
Unity.XRTools.ModuleLoader.IModuleDependency<T>
Unity.XRTools.ModuleLoader.IModuleBuildCallbacks
Unity.XRTools.ModuleLoader.IModule