unreal.AvaAutoFollowModifier

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

Bases: AvaAttachmentBaseModifier

Moves the modifying actor along with a specified actor relative to the specified actor’s bounds.

C++ Source:

  • Plugin: Avalanche

  • Module: AvalancheModifiers

  • File: AvaAutoFollowModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • default_distance (Vector): [Read-Write] The distance from this actor to the followed actor.

  • followed_alignment (AvaAnchorAlignment): [Read-Write] The alignment for the followed actor’s center.

  • followed_axis (int32): [Read-Write] Which axis should we follow

  • ignore_hidden_actors (bool): [Read-Write] If true, will search for the next visible actor based on the selected reference container. deprecated: Use ReferenceActor instead

  • local_alignment (AvaAnchorAlignment): [Read-Write] The alignment for this actor’s center.

  • max_distance (Vector): [Read-Write] The maximum distance from this actor to the followed actor.

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

  • offset_axis (Vector): [Read-Write] Based on followed axis, the direction to offset this actor from the followed actor’s bounds.

  • progress (Vector): [Read-Write] Percent % progress from the maximum distance to the default distance.

  • reference_actor (AvaSceneTreeActor): [Read-Write]

  • reference_actor_weak (Actor): [Read-Write] The actor being followed by the modifier. This is user selectable if the Reference Container is set to “Other”. deprecated: Use ReferenceActor instead

  • reference_container (AvaReferenceContainer): [Read-Write] The method for finding a reference actor based on it’s position in the parent’s hierarchy. deprecated: Use ReferenceActor instead

property default_distance: Vector

[Read-Write] The distance from this actor to the followed actor.

Type:

(Vector)

property followed_alignment: AvaAnchorAlignment

[Read-Write] The alignment for the followed actor’s center.

Type:

(AvaAnchorAlignment)

property followed_axis: int

[Read-Write] Which axis should we follow

Type:

(int32)

get_default_distance() Vector

Gets the distance from this actor to the followed actor.

Return type:

Vector

get_followed_alignment() AvaAnchorAlignment

Gets the alignment for the followed actor’s center.

Return type:

AvaAnchorAlignment

get_followed_axis() int32

Get Followed Axis

Return type:

int32

get_local_alignment() AvaAnchorAlignment

Gets the alignment for this actor’s center.

Return type:

AvaAnchorAlignment

get_max_distance() Vector

Gets the maximum distance from this actor to the followed actor.

Return type:

Vector

get_offset_axis() Vector

Gets the axis direction to offset this actor from the followed actor’s bounds.

Return type:

Vector

get_progress() Vector

Gets the percent % progress from the maximum distance to the default distance.

Return type:

Vector

get_reference_actor() AvaSceneTreeActor

Get Reference Actor

Return type:

AvaSceneTreeActor

property ignore_hidden_actors: bool

[Read-Write] If true, will search for the next visible actor based on the selected reference container. deprecated: Use ReferenceActor instead

Type:

(bool)

property local_alignment: AvaAnchorAlignment

[Read-Write] The alignment for this actor’s center.

Type:

(AvaAnchorAlignment)

property max_distance: Vector

[Read-Write] The maximum distance from this actor to the followed actor.

Type:

(Vector)

property offset_axis: Vector

[Read-Write] Based on followed axis, the direction to offset this actor from the followed actor’s bounds.

Type:

(Vector)

property progress: Vector

[Read-Write] Percent % progress from the maximum distance to the default distance.

Type:

(Vector)

property reference_actor: AvaSceneTreeActor

[Read-Write]

Type:

(AvaSceneTreeActor)

property reference_actor_weak: Actor

[Read-Write] The actor being followed by the modifier. This is user selectable if the Reference Container is set to “Other”. deprecated: Use ReferenceActor instead

Type:

(Actor)

property reference_container: AvaReferenceContainer

[Read-Write] The method for finding a reference actor based on it’s position in the parent’s hierarchy. deprecated: Use ReferenceActor instead

Type:

(AvaReferenceContainer)

set_default_distance(new_default_distance) None

Sets the distance from this actor to the followed actor.

Parameters:

new_default_distance (Vector) –

set_followed_alignment(new_followed_alignment) None

Sets the alignment for the followed actor’s center.

Parameters:

new_followed_alignment (AvaAnchorAlignment) –

set_followed_axis(followed_axis) None

Set Followed Axis

Parameters:

followed_axis (int32) –

set_local_alignment(new_local_alignment) None

Sets the alignment for this actor’s center.

Parameters:

new_local_alignment (AvaAnchorAlignment) –

set_max_distance(new_max_distance) None

Sets the maximum distance from this actor to the followed actor.

Parameters:

new_max_distance (Vector) –

set_offset_axis(new_offset_axis) None

Sets the axis direction to offset this actor from the followed actor’s bounds.

Parameters:

new_offset_axis (Vector) –

set_progress(new_progress) None

Sets the percent % progress from the maximum distance to the default distance.

Parameters:

new_progress (Vector) –

set_reference_actor(reference_actor) None

Set Reference Actor

Parameters:

reference_actor (AvaSceneTreeActor) –