Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Actuators
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgentElement
- UMLAdapterActuator
- UMLAdapterActuator_InputKey
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Actuators/MLAdapterActuator_InputKey.h |
| Include | #include "Actuators/MLAdapterActuator_InputKey.h" |
Syntax
UCLASS&40;Blueprintable, EditInlineNew&41;
class UMLAdapterActuator_InputKey : public UMLAdapterActuator
Remarks
Allows an agent to directly inject key presses into its avatar's input component.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsMultiBinary | Temporary solution. | |
| TArray< float > | InputData | ||
| TArray< int32 > | KeysToPress | ||
| TBitArray | PressedKeys | ||
| TArray< TTuple< FKey, FName > > | RegisteredKeys |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMLAdapterActuator_InputKey
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMLAdapterActuator
| Type | Name | Description | |
|---|---|---|---|
| void | Act
(
const float DeltaTime |
Presses the keys stored in "KeysToPress" | |
| void | DigestInputData
(
FMLAdapterMemoryReader& ValueStream |
Stores data from the ValueStream to be later used by Act. |
Overridden from UMLAdapterAgentElement
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| TSharedPtr< FMLAdapter::FSpace > |