unreal.MLAdapterSensor_Input

class unreal.MLAdapterSensor_Input(outer: Object | None = None, name: Name | str = 'None')

Bases: MLAdapterSensor

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

C++ Source:

  • Plugin: MLAdapter

  • Module: MLAdapter

  • File: MLAdapterSensor_Input.h

Editor Properties: (see get_editor_property/set_editor_property)

  • game_viewport (GameViewportClient): [Read-Write]

  • is_polling (bool): [Read-Write] todo: this is not currently referenced anywhere

  • record_key_release (bool): [Read-Write]

  • requires_pawn (bool): [Read-Write] todo: this is not currently referenced anywhere

  • tick_policy (MLAdapterTickPolicy): [Read-Write] Determines what frequency this sensor ticks at.