unreal.EnumArrayObservation
¶
- class unreal.EnumArrayObservation(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
LearningAgentsObservation
An observation of an array of enumerations.
C++ Source:
Plugin: LearningAgents
Module: LearningAgents
File: LearningAgentsObservations.h
Editor Properties: (see get_editor_property/set_editor_property)
interactor
(LearningAgentsInteractor): [Read-Only] Reference to the Interactor this observation is associated with.
- classmethod add_enum_array_observation(interactor, enum_type, name='None', enum_num=1) EnumArrayObservation ¶
Adds a new enum array observation to the given agent interactor. Call during ULearningAgentsInteractor::SetupObservations event.
- Parameters:
interactor (LearningAgentsInteractor) – The agent interactor to add this observation to.
enum_type (Enum) – The type of enum to use
name (Name) – The name of this new observation. Used for debugging.
enum_num (int32) – The number of enum observations in the array
- Returns:
The newly created observation.
- Return type: