unreal.AvaSizeToTextureModifier

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

Bases: AvaGeometryBaseModifier

Adapts the modified actor geometry size/scale to match the texture size/ratio

C++ Source:

  • Plugin: Avalanche

  • Module: AvalancheModifiers

  • File: AvaSizeToTextureModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • fixed_height (float): [Read-Write] The fixed height size

  • fixed_width (float): [Read-Write] The fixed width size

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

  • rule (AvaSizeToTextureRule): [Read-Write] Rule for texture resize

  • texture (Texture): [Read-Write] Texture to resize to

get_fixed_height() float

Get Fixed Height

Return type:

float

get_fixed_width() float

Get Fixed Width

Return type:

float

get_rule() AvaSizeToTextureRule

Get Rule

Return type:

AvaSizeToTextureRule

get_texture() Texture

Get Texture

Return type:

Texture

set_fixed_height(fixed_height) None

Set Fixed Height

Parameters:

fixed_height (float)

set_fixed_width(fixed_width) None

Set Fixed Width

Parameters:

fixed_width (float)

set_rule(rule) None

Set Rule

Parameters:

rule (AvaSizeToTextureRule)

set_texture(texture) None

Set Texture

Parameters:

texture (Texture)