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 followignore_hidden_actors
(bool): [Read-Write] If true, will search for the next visible actor based on the selected reference container. deprecated: Use ReferenceActor insteadinclude_children
(bool): [Read-Write] If true, will include children bounds too and compute the new sizemodifier_enabled
(bool): [Read-Write] Is the modifier enabled or disabledpadding
(Margin): [Read-Write] Padding around reference boundsreference_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 insteadreference_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:
- 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:
- get_followed_axis() int32 ¶
Get Followed Axis
- Return type:
int32
- get_padding() Margin ¶
Gets the actor affecting the modifier. This is user selectable if the Reference Container is set to “Other”.
- Return type:
- get_reference_actor() AvaSceneTreeActor ¶
Get Reference Actor
- Return type:
[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 reference_actor: AvaSceneTreeActor¶
[Read-Write]
- Type:
- 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:
- set_fit_mode(fit_mode) None ¶
Set Fit Mode
- Parameters:
fit_mode (AvaAutoSizeFitMode) –
- 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) –