unreal.ActorModifierAlignBetweenModifier

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

Bases: ActorModifierCoreBase

Moves the modifying actor to the averaged location between an array of specified actors.

C++ Source:

  • Plugin: ActorModifier

  • Module: ActorModifierLayout

  • File: ActorModifierAlignBetweenModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • modifier_enabled (bool): [Read-Write] Is the modifier enabled or disabled

  • reference_actors (Set[ActorModifierAlignBetweenWeightedActor]): [Read-Write] Editable set of reference actors and weights used to calculate the average location for this actor

add_reference_actor(reference_actor) bool

Adds an actor to the reference list.

Parameters:

reference_actor (ActorModifierAlignBetweenWeightedActor)

Return type:

bool

find_reference_actor(actor) ActorModifierAlignBetweenWeightedActor or None

Finds an actor in the reference list.

Parameters:

actor (Actor)

Returns:

out_reference_actor (ActorModifierAlignBetweenWeightedActor):

Return type:

ActorModifierAlignBetweenWeightedActor or None

get_reference_actors() Set[ActorModifierAlignBetweenWeightedActor]

Gets all reference actors and their weights.

Return type:

Set[ActorModifierAlignBetweenWeightedActor]

remove_reference_actor(actor) bool

Removes an actor from the reference list.

Parameters:

actor (Actor)

Return type:

bool

set_reference_actors(reference_actors) None

Sets all reference actors and their weights.

Parameters:

reference_actors (Set[ActorModifierAlignBetweenWeightedActor])