DashcamManager
↳ extends UnityEngine.MonoBehaviour
Declaration
public class DashcamManager : MonoBehaviourSummary
MonoBehaviour that manages the NSDK dashcam feature lifecycle. Attach to a GameObject in your scene to enable continuous frame buffering with the ability to save the buffer to a V2 sequence on demand.
Properties
| Name | Type | Summary |
|---|---|---|
| readonly IsRunning | bool | Whether the dashcam is currently buffering frames. |
Methods
| Name | Type | Summary |
|---|---|---|
| ApplyConfiguration | void | Apply the current configuration to the native dashcam. Must be called while the dashcam is stopped. |
| GetBufferInfo | DashcamBufferInfo | Get the current buffer state. |
| SetConfiguration | void | Update configuration values from script. Call ApplyConfiguration afterwards (while stopped) to push them to native. |
| StartBuffering | void | Start buffering frames. |
| StopBuffering | void | Stop buffering frames. Buffer is cleared. Saving is not allowed while stopped. |
| async TriggerSaveAsync | Task<DashcamSaveResult> | Trigger a save of the current buffer to disk as a V2 sequence and await the result. The dashcam continues buffering during the save. |