Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor
Description
This callback can be overridden by the Interactor and performs all the actions for the given agents in the world. The structure of the Action Elements given as input to this function will match that defined by the Schema. The default implementation calls PerformAgentAction on each agent.
| Name | PerformAgentActions |
| 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 PerformAgentActions
(
const ULearningAgentsActionObject * InActionObject,
const TArray < FLearningAgentsActionObjectElement > & InActionObjectElements,
const TArray < int32 > & AgentIds
)
Parameters
| Name | Remarks |
|---|---|
| InActionObject | Action Object. |
| InActionObjectElements | Input Actions Element. This will be the same size as AgentIds. |
| AgentIds | Set of Agent Ids to perform actions for. |