Table of Contents

Class MarkerTrailRecorder

Namespace
LansMap.Lines
public sealed class MarkerTrailRecorder : MonoBehaviour
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
MarkerTrailRecorder

Fields

Map

[Tooltip("Map whose markers are trailed.")]
public BaseMapView Map

Field Value

BaseMapView

MaxPoints

[Tooltip("Maximum trail points per marker.")]
public int MaxPoints

Field Value

int

SampleSeconds

[Tooltip("Seconds between trail samples.")]
public float SampleSeconds

Field Value

float

TrailColor

[Tooltip("Trail color.")]
public Color TrailColor

Field Value

Color

WidthPx

[Tooltip("Trail width in screen pixels.")]
public float WidthPx

Field Value

float

Methods

Sample()

Appends one trail sample for every tracked marker right now, bypassing the SampleSeconds real-time gate.

public void Sample()

Remarks

For a driver that wants exactly one sample per call (e.g. a deterministic per-frame marketing capture) - ordinary runtime use should let LansMap.Lines.MarkerTrailRecorder.Update() gate this on SampleSeconds instead of calling it directly.

Track(int)

public void Track(int markerId)

Parameters

markerId int

Untrack(int)

public void Untrack(int markerId)

Parameters

markerId int