Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Sensors
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgentElement
- UMLAdapterSensor
- UMLAdapterSensor_Input
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sensors/MLAdapterSensor_Input.h |
| Include | #include "Sensors/MLAdapterSensor_Input.h" |
Syntax
UCLASS&40;Blueprintable&41;
class UMLAdapterSensor_Input : public UMLAdapterSensor
Remarks
Note that this sensor doesn't buffer input state between GetObservations call
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bRecordKeyRelease | ||
| TMap< FKey, int32 > | FKeyToInterfaceKeyMap | ||
| TObjectPtr< UGameViewportClient > | GameViewport | ||
| TArray< float > | InputState | ||
| TArray< TTuple< FKey, FName > > | InterfaceKeys | Stores (FKey, ActionName pairs). The order is important since FKeyToInterfaceKeyMap refers to it. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMLAdapterSensor_Input
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | OnInputAxis
(
FViewport* InViewport, |
||
| void | OnInputKey
(
const FInputKeyEventArgs& EventArgs |
Overridden from UMLAdapterSensor
| Type | Name | Description | |
|---|---|---|---|
| void |
Overridden from UMLAdapterAgentElement
| Type | Name | Description | |
|---|---|---|---|
| void | Called before actuator's destruction. | ||
| TSharedPtr< FMLAdapter::FSpace > | |||
| void | OnAvatarSet
(
AActor* Avatar |
||
| void |