Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor
Description
This callback can be overridden by the Interactor and gathers all the observations for the given agents. The structure of the Observation Elements output by this function should match that defined by the Schema. The default implementation calls GatherAgentObservation on each agent.
| Name | GatherAgentObservations |
| 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 GatherAgentObservations
(
TArray < FLearningAgentsObservationObjectElement > & OutObservationObjectElements,
ULearningAgentsObservationObject * InObservationObject,
const TArray < int32 > & AgentIds
)
Parameters
| Name | Remarks |
|---|---|
| OutObservationObjectElements | Output Observation Elements. This should be the same size as AgentIds. |
| InObservationObject | Observation Object. |
| AgentIds | Set of Agent Ids to gather observations for. |