Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
Description
Get the names for a named inclusive discrete action. The OutNames ArrayView must be the correct size.
| Name | GetNamedInclusiveDiscreteActionToArrayView |
| 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 GetNamedInclusiveDiscreteActionToArrayView
(
TArrayView < FName > OutNames,
const ULearningAgentsActionObject * Object,
const FLearningAgentsActionObjectElement Element,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener * VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
true if the provided Element is the correct type, otherwise false.
Parameters
| Name | Remarks |
|---|---|
| OutNames | The output names. |
| Object | The Action Object |
| Element | The Action Object Element |
| Tag | The tag of the corresponding action. Must match the tag given during Specify. |
| bVisualLoggerEnabled | When true, debug data will be sent to the visual logger. |
| VisualLoggerListener | The listener object which is making this action. This must be set to use logging. |
| VisualLoggerAgentId | The agent id associated with this action. |
| VisualLoggerLocation | A location for the visual logger information in the world. |
| VisualLoggerColor | The color for the visual logger display. |