Class MarkerVisualCoordinateService
A variant of marker based ISpatialCoordinateService implementation. This one tracks coordinates displayed on the screen of current mobile device.
The logic is that every time you start tracking a new coordinate is created and shown on the screen, after you stop tracking that coordinates location is no longer updated with the device.
Inheritance
MarkerVisualCoordinateService
Assembly: cs.temp.dll.dll
Syntax
public class MarkerVisualCoordinateService : SpatialCoordinateServiceBase<int>
Constructors
Declaration
public MarkerVisualCoordinateService(IMarkerVisual markerVisual, UnityEngine.Matrix4x4 cameraToMarker, UnityEngine.Transform cameraTransform, bool debugLogging = false)
Parameters
Type |
Name |
Description |
IMarkerVisual |
markerVisual |
|
UnityEngine.Matrix4x4 |
cameraToMarker |
|
UnityEngine.Transform |
cameraTransform |
|
Boolean |
debugLogging |
|
Methods
OnDiscoverCoordinatesAsync(CancellationToken, Int32[])
Declaration
protected override Task OnDiscoverCoordinatesAsync(CancellationToken cancellationToken, int[] idsToLocate)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Int32[] |
idsToLocate |
|
Returns
OnManagedDispose()
Declaration
protected override void OnManagedDispose()
TryParse(String, out Int32)
Declaration
protected override bool TryParse(string id, out int result)
Parameters
Returns