Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsManager
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TConstArrayView< TObjectPtr< UObject > > GetAgents () |
Get a const array view of this manager's agent objects. | LearningAgentsManager.h | |
| Gets the agents associated with a set of ids. | LearningAgentsManager.h |
|
GetAgents()
Description
Get a const array view of this manager's agent objects.
| Name | GetAgents |
| 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 |
TConstArrayView< TObjectPtr < UObject > > GetAgents() const
GetAgents(TArray< UObject * > &, const TArray< int32 > &, const TSubclassOf< UObject >)
Description
Gets the agents associated with a set of ids. Calling this from blueprint with the appropriate AgentClass will automatically cast the object to the given type.
| Name | GetAgents |
| 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=false, Category="LearningAgents",
Meta=(DeterminesOutputType="AgentClass", DynamicOutputParam="OutAgents"))
void GetAgents
(
TArray < UObject * > & OutAgents,
const TArray < int32 > & AgentIds,
const TSubclassOf < UObject > AgentClass
) const
Parameters
| Name | Remarks |
|---|---|
| AgentIds | The ids of the agents to get. |
| AgentClass | The class to cast the agent objects to (in blueprint). |
| OutAgents | The output array of agent objects. |