Show / Hide Table of Contents

Class TransformLocationProvider

The TransformLocationProvider is responsible for providing mock location and heading data for testing purposes in the Unity editor. This is achieved by querying a Unity Transform every frame. You might use this to to update location based on a touched position, for example.

Inheritance
MonoBehaviour
AbstractLocationProvider
AbstractEditorLocationProvider
TransformLocationProvider
Inherited Members
AbstractEditorLocationProvider._accuracy
AbstractEditorLocationProvider.SendLocationEvent()
AbstractEditorLocationProvider.OnValidate()
AbstractLocationProvider._currentLocation
AbstractLocationProvider.CurrentLocation
AbstractLocationProvider.OnLocationUpdated
AbstractLocationProvider.SendLocation(Location)
Namespace:Mapbox.Unity.Location
Assembly:cs.temp.dll.dll
Syntax
public class TransformLocationProvider : AbstractEditorLocationProvider, ILocationProvider

Properties

TargetTransform

Sets the target transform. Use this if you want to switch the transform at runtime.

Declaration
public Transform TargetTransform { set; }
Property Value
Type Description
Transform

Methods

SetLocation()

Declaration
protected override void SetLocation()
Overrides
AbstractEditorLocationProvider.SetLocation()
Back to top © 2017 Mapbox