Skip to content

MRIExperimentState::Record

Class: MRIExperimentState

Records the full frame into this snapshot: visits every agent and copies the subject's TTL count, points, and displayed prompt type.

Syntax

void MRIExperimentState::Record(TArray< const UMRIAgentComponent * > agents, AMRISubjectState *playerState)

Parameters

Parameter Type Description
agents TArray< const UMRIAgentComponent * > Array of agent components to visit and record.
playerState AMRISubjectState * The subject's replicated player state.

Remarks

Call it from your subclass constructor body: at that point the object is fully constructed as your subclass, so your Visit() overrides are the ones that run. agents Array of agent components to visit and record. playerState The subject's replicated player state.