unreal.AvaAutoSizeModifier

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

Bases: AvaGeometryBaseModifier

Adapts the modified actor geometry size/scale and position so that it acts as a background for a specified actor

C++ Source:

  • Plugin: Avalanche

  • Module: AvalancheModifiers

  • File: AvaAutoSizeModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • fit_mode (AvaAutoSizeFitMode): [Read-Write]

  • followed_axis (int32): [Read-Write] Which axis should we follow, if none selected, it will not 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

  • include_children (bool): [Read-Write] If true, will include children bounds too and compute the new size

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

  • padding (Margin): [Read-Write] Padding around reference bounds

  • reference_actor (AvaSceneTreeActor): [Read-Write]

  • reference_actor_weak (Actor): [Read-Write] The actor affecting 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 fit_mode: AvaAutoSizeFitMode

[Read-Write]

Type:

(AvaAutoSizeFitMode)

property followed_axis: int

[Read-Write] Which axis should we follow, if none selected, it will not follow

Type:

(int32)

get_fit_mode() AvaAutoSizeFitMode

Get Fit Mode

Return type:

AvaAutoSizeFitMode

get_followed_axis() int32

Get Followed Axis

Return type:

int32

get_include_children() bool

Get Include Children

Return type:

bool

get_padding() Margin

Gets the actor affecting the modifier. This is user selectable if the Reference Container is set to “Other”.

Return type:

Margin

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 include_children: bool

[Read-Write] If true, will include children bounds too and compute the new size

Type:

(bool)

property padding: Margin

[Read-Write] Padding around reference bounds

Type:

(Margin)

property reference_actor: AvaSceneTreeActor

[Read-Write]

Type:

(AvaSceneTreeActor)

property reference_actor_weak: Actor

[Read-Write] The actor affecting 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_fit_mode(fit_mode) None

Set Fit Mode

Parameters:

fit_mode (AvaAutoSizeFitMode) –

set_followed_axis(followed_axis) None

Set Followed Axis

Parameters:

followed_axis (int32) –

set_include_children(include_children) None

Set Include Children

Parameters:

include_children (bool) –

set_padding(padding) None

Sets the actor affecting the modifier. This is user selectable if the Reference Container is set to “Other”.

Parameters:

padding (Margin) –

set_reference_actor(reference_actor) None

Set Reference Actor

Parameters:

reference_actor (AvaSceneTreeActor) –