class unreal.U4MLSensor_Input(outer=None, name='None')

Bases: unreal.U4MLSensor

Note that this sensor doesn’t buffer input state between GetObservations call a child class could easily do that by overriding OnInputKey/OnInputAxis and GetObservations:

C++ Source:

  • Plugin: UE4ML

  • Module: UE4ML

  • File: 4MLSensor_Input.h

Editor Properties: (see get_editor_property/set_editor_property)

  • game_viewport (GameViewportClient): [Read-Write] Game Viewport

  • is_polling (bool): [Read-Write] Is Polling

  • record_key_release (bool): [Read-Write] Record Key Release

  • requires_pawn (bool): [Read-Write] Requires Pawn

  • tick_policy (E4MLTickPolicy): [Read-Write] Tick Policy