UMRILoggerComponent¶
Base actor component that collects per-frame experiment state during demo playback.
Syntax¶
Remarks¶
Attach this component (or a subclass) to the spectator controller. The spectator calls LogFrame() each tick to record the current state of all registered agents and the subject's player state into the experiment log buffer.
Subclass this component to add experiment-specific data to each log frame. UCLASS
Inheritance Hierarchy¶
UActorComponent → UMRILoggerComponent
Methods¶
| Method | Signature | Description | Blueprint |
|---|---|---|---|
| LogFrame | void UMRILoggerComponent::LogFrame() |
Captures the current per-frame experiment state and appends it to the spectator controller's log buffer. | |
| SetParentController | void UMRILoggerComponent::SetParentController(AMRISpectatorController *parent) |
Sets the owning spectator controller so this component can query its state. | |
| UMRILoggerComponent | UMRILoggerComponent::UMRILoggerComponent() |
Constructs the component. |
Properties¶
| Property | Type | Description | Blueprint |
|---|---|---|---|
| playerState | AMRISubjectState * |
The subject's replicated player state, resolved lazily from the spectator controller. | |
| spectatorController | AMRISpectatorController * |
The spectator controller that owns and drives this logger component. |