Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
Description
Get the sub-actions for a struct action. The OutElementNames and OutElements ArrayViews must be the correct size.
| Name | GetStructActionToArrayViews |
| 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 |
static bool GetStructActionToArrayViews
(
TArrayView < FName > OutElementNames,
TArrayView < FLearningAgentsActionObjectElement > OutElements,
const ULearningAgentsActionObject * Object,
const FLearningAgentsActionObjectElement Element,
const FName Tag
)
true if the provided Element is the correct type, otherwise false.
Parameters
| Name | Remarks |
|---|---|
| OutElementNames | The output sub-action names. |
| OutElements | The output sub-actions. |
| Object | The Action Object |
| Element | The Action Object Element |
| Tag | The tag of the corresponding action. Must match the tag given during Specify. |