Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Actuators
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgentElement
- UMLAdapterActuator
- UMLAdapterActuator_Camera
- UMLAdapterActuator_EnhancedInput
- UMLAdapterActuator_InputKey
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Actuators/MLAdapterActuator.h |
| Include | #include "Actuators/MLAdapterActuator.h" |
Syntax
UCLASS (Abstract, Blueprintable, EditInlineNew)
class UMLAdapterActuator : public UMLAdapterAgentElement
Remarks
Allows an agent to take an action in the game world.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCriticalSection | ActionCS | This needs to be used in every implementation of Act and DigestInputData to ensure that shared state is not be accessed simultaneously by the game thread and the RPC server thread. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMLAdapterActuator
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Act
(
const float DeltaTime |
Takes an action in the game based on earlier digested data. | |
| void | DigestInputData
(
FMLAdapterMemoryReader& ValueStream |
Stores data from the ValueStream to be later used by Act. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |