Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
ULearningAgentsEntitiesManagerComponent handles the spawn and reset of multiple entity types during training.
| Name | ULearningAgentsEntitiesManagerComponent |
| Type | class |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsEntitiesManagerComponent.h |
| Include Path | #include "LearningAgentsEntitiesManagerComponent.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=(LearningAgents), Meta=(BlueprintSpawnableComponent))
class ULearningAgentsEntitiesManagerComponent :
public UActorComponent ,
public ILearningAgentsLearningComponentInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → ULearningAgentsEntitiesManagerComponent
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Entities | TArray< FLearningAgentsEntityInfo > | Specify the entity types to spawn. | LearningAgentsEntitiesManagerComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EntitiesPool | TMap< FName, FSpawnedEntitiesInfo > | LearningAgentsEntitiesManagerComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< TScriptInterface< ILearningAgentsEntityInterface > > SpawnEntities
(
TSubclassOf< AActor > EntityClass, |
Spawns multiple pooled entities. | LearningAgentsEntitiesManagerComponent.h |
|
TScriptInterface< ILearningAgentsEntityInterface > SpawnEntitiesAtRandomLocations
(
TSubclassOf< AActor > EntityClass, |
Spawns pooled entities at random locations. | LearningAgentsEntitiesManagerComponent.h |
|
TScriptInterface< ILearningAgentsEntityInterface > SpawnEntityAtProjectedLocation
(
TSubclassOf< AActor > EntityClass, |
Spawns a single pooled entity with a specified transform projected in the gym. | LearningAgentsEntitiesManagerComponent.h |
|
Overridden from ILearningAgentsLearningComponentInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeLearningComponent() |
Initializes the entities that the component manages. | LearningAgentsEntitiesManagerComponent.h | |
virtual void ResetLearningComponent() |
Resets entities that the component manages. | LearningAgentsEntitiesManagerComponent.h |
Protected
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
LearningAgentsEntitiesManagerComponent.h |