unreal.ActorModifierGridArrangeModifier

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

Bases: ActorModifierArrangeBaseModifier

Arranges child actors in a 2D grid format.

C++ Source:

  • Plugin: ActorModifier

  • Module: ActorModifierLayout

  • File: ActorModifierGridArrangeModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • count (IntPoint): [Read-Write] The width and height of the grid.

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

  • spread (Vector2D): [Read-Write] The distance between each horizontal and vertical child.

  • start_corner (ActorModifierGridArrangeCorner2D): [Read-Write] The 2D corner from which to start the arrangement.

  • start_direction (ActorModifierGridArrangeDirection): [Read-Write] The direction from which to start the arrangement.

get_count() IntPoint

Returns the width and height of the grid.

Return type:

IntPoint

get_spread() Vector2D

Returns the distance between each horizontal and vertical child.

Return type:

Vector2D

get_start_corner() ActorModifierGridArrangeCorner2D

Get Start Corner

Return type:

ActorModifierGridArrangeCorner2D

get_start_direction() ActorModifierGridArrangeDirection

Get Start Direction

Return type:

ActorModifierGridArrangeDirection

set_count(count) None

Sets the width and height of the grid.

Parameters:

count (IntPoint)

set_spread(spread) None

Sets the distance between each horizontal and vertical child.

Parameters:

spread (Vector2D)

set_start_corner(corner) None

Set Start Corner

Parameters:

corner (ActorModifierGridArrangeCorner2D)

set_start_direction(direction) None

Set Start Direction

Parameters:

direction (ActorModifierGridArrangeDirection)

property spread: Vector2D

[Read-Write] The distance between each horizontal and vertical child.

Type:

(Vector2D)