Skip to content

Class AGymConnectorManager

Class AGymConnectorManager

  • Defined in File GymConnectorManager.h

Inheritance Relationships

Base Type

  • public AActor
class AGymConnectorManager : public AActor

Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h

Dependencies: UAbstractGymConnector

Actor-based container for gym connectors in the Unreal Engine world.

Provides a simple way to add a gym connector to your level.

This actor manages the lifecycle of a gym connector, handling initialization and per-frame updates. Place this actor in your level to manage training connections. It will automatically collect environments from the connector and step the connector every frame. To handle more complex training scenarios, you can implement your own AActor to manage the gym connector lifecycle.


Public Functions

SymbolDetails
AGymConnectorManagerDefault constructor for the gym connector manager.
TickCalled every frame to update the connector state.

AGymConnectorManager

AGymConnectorManager()

Default constructor for the gym connector manager.

Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h

Implementation: Source/Schola/Training/Private/TrainingUtils/GymConnectorManager.cpp

Tick

virtual void Tick(float DeltaTime) override

Called every frame to update the connector state.

Parameters

DeltaTime – [in] The time elapsed since the last frame.

#DirectionNameTypeDescription
1DeltaTimefloatThe time elapsed since the last frame.

Attributes: virtual

Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h

Implementation: Source/Schola/Training/Private/TrainingUtils/GymConnectorManager.cpp


Public Members

SymbolDetails
ConnectorThe gym connector instance managed by this actor.

Connector

UAbstractGymConnector *Connector = nullptr

The gym connector instance managed by this actor.

Set this to the type of connector you want to use (e.g., gRPC, Manual).


Protected Functions

SymbolDetails
BeginPlayCalled when the game starts or when the actor is spawned.

BeginPlay

virtual void BeginPlay() override

Called when the game starts or when the actor is spawned.

Initializes the connector and starts the training process.

Attributes: virtual

Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h

Implementation: Source/Schola/Training/Private/TrainingUtils/GymConnectorManager.cpp