UE4U4MLSensor_Input

That this sensor doesn't buffer input state between GetObservations call

Windows
MacOS
Linux

Inheritance Hierarchy

U4MLSensor

UE4U4MLSensor_Input

References

Module

UE4ML

Header

/Engine/Plugins/AI/UE4ML/Source/UE4ML/Public/Sensors/4MLSensor_Input.h

Include

#include "Sensors/4MLSensor_Input.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Blueprintable)
class UE4U4MLSensor_Input : public U4MLSensor

Remarks

That this sensor doesn't buffer input state between GetObservations call

Variables

Name Description

Protected variable UProperty Category, EditDefaultsOnly

uint32: 1

 

bRecordKeyRelease

Protected variable

TMap< FKey, int...

 

FKeyToInterfaceKeyMap

Protected variable UProperty Category, EditDefaultsOnly

UGameViewportCl...

 

GameViewport

Protected variable

TArray< float >

 

InputState

Protected variable

TArray< TTuple<...

 

InterfaceKeys

Stores (FKey, ActionName pairs). The order is important since FKeyToInterfaceKeyMap refers to it.

Functions

Name Description

Protected function Virtual

void

 

Configure

(
    const TMap< FName, FString >& Para...
)

Protected function Virtual Const

TSharedPtr< ...

 

ConstructSpaceDef()

Protected function Virtual

void

 

GetObservations

(
    F4MLMemoryWriter& Ar
)

Protected function Virtual

void

 

OnAvatarSet

(
    AActor* Avatar
)

Protected function Virtual

void

 

OnInputAxis

(
    FViewport* InViewport,
    int32 ControllerId,
    FKey Key,
    float Delta,
    float DeltaTime,
    int32 NumSamples,
    bool bGamepad
)

Protected function Virtual

void

 

OnInputKey

(
    const FInputKeyEventArgs& EventArg...
)

Public function

 

U4MLSensor_Input

(
    const FObjectInitializer& ObjectIn...
)

Protected function Virtual

void

 

UpdateSpaceDef()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss