unreal.ConditionalCompletion
¶
- class unreal.ConditionalCompletion(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
LearningAgentsCompletion
A simple boolean completion. Used as a catch-all for situations where a more type-specific completion does not exist yet.
C++ Source:
Plugin: LearningAgents
Module: LearningAgentsTraining
File: LearningAgentsCompletions.h
Editor Properties: (see get_editor_property/set_editor_property)
agent_trainer
(LearningAgentsTrainer): [Read-Only] Reference to the Trainer this completion is associated with.
- classmethod add_conditional_completion(agent_trainer, name='None', completion_mode=LearningAgentsCompletionEnum.TERMINATION) ConditionalCompletion ¶
Adds a new conditional completion to the given trainer. Call during ULearningAgentsTrainer::SetupCompletions event.
- Parameters:
agent_trainer (LearningAgentsTrainer) – The trainer to add this completion to.
name (Name) – The name of this new completion. Used for debugging.
completion_mode (LearningAgentsCompletionEnum) – The completion mode.
- Returns:
The newly created completion.
- Return type: