unreal.MassLookAtTargetTrait

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

Bases: MassEntityTraitBase

Look At Target

C++ Source:

  • Plugin: MassAI

  • Module: MassAIBehavior

  • File: MassLookAtTargetTrait.h

Editor Properties: (see get_editor_property/set_editor_property)

  • priority (MassLookAtPriority): [Read-Write] Priority assigned to the target to influence target selection

  • should_use_capsule_component_to_set_target_offset (bool): [Read-Write] Indicates whether the trait will use an initializer to set target offset using the height of the capsule component if available.

  • valid_target_config (ProcessorExecutionFlags): [Read-Write] Configures which configurations are targeted by this trait. Use it to have different configurations for client and server, for example.