Class CameraPoseRecorder
Data recorder for camera tracking
Inherited Members
Namespace: Unity.MARS
Syntax
public class CameraPoseRecorder : DataRecorder, IUsesCameraPose, IFunctionalitySubscriber<IProvidesCameraPose>, IUsesSlowTasks, IFunctionalitySubscriber<IProvidesSlowTasks>, IFunctionalitySubscriber
Constructors
CameraPoseRecorder()
Initialize a new CameraPoseRecorder
Declaration
public CameraPoseRecorder()
Properties
PoseEvents
List of camera tracking events
Declaration
public List<PoseEvent> PoseEvents { get; set; }
Property Value
Type | Description |
---|---|
List<PoseEvent> |
Methods
FinalizeRecording()
Declaration
protected override void FinalizeRecording()
Overrides
Setup()
Declaration
protected override void Setup()
Overrides
TearDown()
Declaration
protected override void TearDown()
Overrides
TryCreateDataRecording(TimelineAsset, List<Object>)
Create a new camera pose track on the provided timeline
Declaration
public override DataRecording TryCreateDataRecording(TimelineAsset timeline, List<Object> newAssets)
Parameters
Type | Name | Description |
---|---|---|
TimelineAsset | timeline | The timeline to which the track will be added |
List<Object> | newAssets | A list to which new assets can be added. This method adds an AnimationClip. |
Returns
Type | Description |
---|---|
DataRecording | The camera pose recording |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if the camera pose recording contains less than 2 events |
Explicit Interface Implementations
IFunctionalitySubscriber<IProvidesCameraPose>.provider
Declaration
IProvidesCameraPose IFunctionalitySubscriber<IProvidesCameraPose>.provider { get; set; }
Returns
Type | Description |
---|---|
IProvidesCameraPose |
Implements
IFunctionalitySubscriber<IProvidesSlowTasks>.provider
Declaration
IProvidesSlowTasks IFunctionalitySubscriber<IProvidesSlowTasks>.provider { get; set; }
Returns
Type | Description |
---|---|
IProvidesSlowTasks |