Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor
Description
This callback should be overridden by the Interactor and gathers the observations for a single agent. The structure of the Observation Elements output by this function should match that defined by the Schema.
| Name | GatherAgentObservation |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsInteractor.h |
| Include Path | #include "LearningAgentsInteractor.h" |
UFUNCTION (BlueprintNativeEvent, Category="LearningAgents", Meta=(ForceAsFunction))
void GatherAgentObservation
(
FLearningAgentsObservationObjectElement & OutObservationObjectElement,
ULearningAgentsObservationObject * InObservationObject,
const int32 AgentId
)
Parameters
| Name | Remarks |
|---|---|
| OutObservationObjectElement | Output Observation Element. |
| InObservationObject | Observation Object. |
| AgentId | The Agent Id to gather observations for. |