Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor
Description
This callback can be optionally overridden by the Interactor to create all the action modifier for the given agents. The structure of the Action Modifier Elements output by this function should match that of the actions defined by the Schema. The default implementation calls MakeAgentActionModifier on each agent.
| Name | MakeAgentActionModifiers |
| 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 MakeAgentActionModifiers
(
TArray < FLearningAgentsActionModifierElement > & OutActionModifierElements,
ULearningAgentsActionModifier * InActionModifier,
const ULearningAgentsObservationObject * InObservationObject,
const TArray < FLearningAgentsObservationObjectElement > & InObservationObjectElements,
const TArray < int32 > & AgentIds
)
Parameters
| Name | Remarks |
|---|---|
| OutActionModifierElements | Output Action Modifier Elements. This should be the same size as AgentIds. |
| InActionModifier | Action Modifier Object. |
| InObservationObject | Input Observation Object. |
| InObservationObjectElements | Input Observation Object Elements. |
| AgentIds | Set of Agent Ids to make action modifiers for. |