Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsManager
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| -- Non-blueprint public interface -- | LearningAgentsManager.h | ||
| Gets the agent corresponding to the given id. | LearningAgentsManager.h | ||
UObject * GetAgent
(
const int32 AgentId, |
Gets the agent with the given id. | LearningAgentsManager.h |
|
GetAgent(const int32)
Description
Gets the agent corresponding to the given id.
| Name | GetAgent |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsManager.h |
| Include Path | #include "LearningAgentsManager.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsManager.cpp |
const UObject * GetAgent
(
const int32 AgentId
) const
GetAgent(const int32)
Description
Gets the agent corresponding to the given id.
| Name | GetAgent |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsManager.h |
| Include Path | #include "LearningAgentsManager.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsManager.cpp |
UObject * GetAgent
(
const int32 AgentId
)
GetAgent(const int32, const TSubclassOf< UObject >)
Description
Gets the agent with the given id. Calling this from blueprint with the appropriate AgentClass will automatically cast the object to the given type. If not in a blueprint, you should use one of the other GetAgent overloads.
| Name | GetAgent |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsManager.h |
| Include Path | #include "LearningAgentsManager.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsManager.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents",
Meta=(AgentId="-1", DeterminesOutputType="AgentClass"))
UObject * GetAgent
(
const int32 AgentId,
const TSubclassOf < UObject > AgentClass
) const
The agent object.
Parameters
| Name | Remarks |
|---|---|
| AgentId | The id of the agent to get. |
| AgentClass | The class to cast the agent object to (in blueprint). |