Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ALearningAgentsManager
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsManager.h |
| Include | #include "LearningAgentsManager.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsManager.cpp |
UFUNCTION&40;BlueprintPure&61;false, Category&61;"LearningAgents",
Meta&61;&40;DeterminesOutputType&61;"AgentClass", DynamicOutputParam&61;"OutAgents"&41;&41;
void GetAllAgents
&40;
TArray< UObject &42; > & OutAgents,
TArray< int32 > & OutAgentIds,
const TSubclassOf< UObject > AgentClass
&41; const
Remarks
Gets all added agents. Calling this from blueprint with the appropriate AgentClass will automatically cast the object to the given type.
Parameters
| Name | Description |
|---|---|
| AgentClass | The class to cast the agent objects to (in blueprint). |
| OutAgents | The output array of agent objects. |
| OutAgentIds | The output array of agent ids. |