Class CameraTrackingDevice
A type of Live
Inheritance
Inherited Members
Namespace: Unity.LiveCapture .Cameras
Assembly: Unity.LiveCapture.Cameras.dll
Syntax
public abstract class CameraTrackingDevice : LiveStreamCaptureDevice
Properties
Camera
The camera currently assigned to this device.
Declaration
public Camera Camera { get; set; }
Property Value
Type | Description |
---|---|
Camera |
See Also
Methods
AddFrame<T>(T, FrameTimeWithRate?)
Process a new frame of data.
Declaration
protected void AddFrame<T>(T frame, FrameTimeWithRate? frameTime = null)
Parameters
Type | Name | Description |
---|---|---|
T | frame | The frame to add. |
Frame |
frameTime | The timecode of the frame. When null, a timecode will be generated. |
Type Parameters
Name | Description |
---|---|
T | The datatype of the samples. |
See Also
CreateTimedDataBuffer()
Creates a new ITimed
Declaration
protected abstract ITimedDataBuffer CreateTimedDataBuffer()
Returns
Type | Description |
---|---|
ITimed |
The new ITimed |
See Also
GetCurrentFrame<T>()
Gets the sample at the specified frame time.
Declaration
protected T GetCurrentFrame<T>()
Returns
Type | Description |
---|---|
T | The sample at the specified frame time. |
Type Parameters
Name | Description |
---|---|
T | The datatype of the samples. |
See Also
OnDisable()
The device calls this method when the device is about to get disabled.
Declaration
protected override void OnDisable()
Overrides
Remarks
If you override this method, call the base method in your implementation.
See Also
OnEnable()
The device calls this method when the device is about to get enabled.
Declaration
protected override void OnEnable()
Overrides
Remarks
If you override this method, call the base method in your implementation.
See Also
OnValidate()
Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector.
Declaration
protected virtual void OnValidate()
Remarks
You would usually use this to perform an action after a value changes in the Inspector; for example, making sure that data stays within a certain range.
See Also
ResetSyncBuffer()
Clears all frames in the synchronization buffer.
Declaration
protected void ResetSyncBuffer()
See Also
Write(ITakeBuilder)
Stores the recording into a take using a ITake
Declaration
public override void Write(ITakeBuilder takeBuilder)
Parameters
Type | Name | Description |
---|---|---|
ITake |
takeBuilder | The take builder object. |