Click or drag to resize
PanelsGridGenerateColums Method (Int32, Entity, NullableVector2, PanelSkin)
Generate and return a set of panels aligned next to each other with a constant size. This is useful for cases like when you want to divide your panel into 3 colums.

Namespace:  GeonBit.UI.Utils
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Panel[] GenerateColums(
	int amount,
	Entity parent,
	Nullable<Vector2> columnSize = null,
	PanelSkin skin = PanelSkin.None
)

Parameters

amount
Type: SystemInt32
How many panels to create.
parent
Type: GeonBit.UI.EntitiesEntity
Optional parent entity to add panels to.
columnSize (Optional)
Type: SystemNullableVector2
Size of every column. If not set will be 1f / amount with auto-set height.
skin (Optional)
Type: GeonBit.UI.EntitiesPanelSkin
Panels skin to use (default to None, making them invisible.

Return Value

Type: Panel
Array with generated panels.
See Also