Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
Description
Specifies a new struct action. This represents an action which is made up of a number of named sub-actions.
| Name | SpecifyStructActionFromArrays |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsActions.h |
| Include Path | #include "LearningAgentsActions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsActions.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AdvancedDisplay=3))
static FLearningAgentsActionSchemaElement SpecifyStructActionFromArrays
(
ULearningAgentsActionSchema * Schema,
const TArray < FName > & ElementNames,
const TArray < FLearningAgentsActionSchemaElement > & Elements,
const FName Tag
)
The newly created action schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Action Schema |
| ElementNames | The names of the sub-actions. |
| Elements | The corresponding sub-actions. Must be the same size as ElementNames. |
| Tag | The tag of this new action. Used during action object validation and debugging. |