Class CameraTrackingDevice
A type of LiveStreamCaptureDevice that provides the common functionality required to implement support for third-party camera tracking devices.
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. |
FrameTimeWithRate? | 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 ITimedDataBuffer.
Declaration
protected abstract ITimedDataBuffer CreateTimedDataBuffer()
Returns
Type | Description |
---|---|
ITimedDataBuffer | The new ITimedDataBuffer. |
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()
Declaration
protected override void OnDisable()
Overrides
See Also
OnEnable()
Declaration
protected override void OnEnable()
Overrides
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)
Declaration
public override void Write(ITakeBuilder takeBuilder)
Parameters
Type | Name | Description |
---|---|---|
ITakeBuilder | takeBuilder |