Class MarkerTrailRecorder
public sealed class MarkerTrailRecorder : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourMarkerTrailRecorder
Fields
Map
[Tooltip("Map whose markers are trailed.")]
public BaseMapView Map
Field Value
MaxPoints
[Tooltip("Maximum trail points per marker.")]
public int MaxPoints
Field Value
SampleSeconds
[Tooltip("Seconds between trail samples.")]
public float SampleSeconds
Field Value
TrailColor
[Tooltip("Trail color.")]
public Color TrailColor
Field Value
- Color
WidthPx
[Tooltip("Trail width in screen pixels.")]
public float WidthPx
Field Value
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
markerIdint
Untrack(int)
public void Untrack(int markerId)
Parameters
markerIdint