Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsActions.h |
| Include | #include "LearningAgentsActions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsActions.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AdvancedDisplay=2))
static FLearningAgentsActionSchemaElement SpecifyOptionalAction
(
ULearningAgentsActionSchema * Schema,
const FLearningAgentsActionSchemaElement Element,
const float PriorProbability,
const FName Tag
)
Remarks
Specifies a new optional action. This represents an action which may or may not be generated. The newly created action schema element.
Parameters
| Name | Description |
|---|---|
| Schema | The Action Schema |
| Element | The sub-action. |
| PriorProbabilities | The prior probability of sampling this action. |
| Tag | The tag of this new action. Used during action object validation and debugging. |