Click or drag to resize
PanelsGridGenerateColums Method (Vector2, Entity, PanelSkin)
Generate and return a set of panels aligned next to each other. 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(
	Vector2[] panelSizes,
	Entity parent,
	PanelSkin skin = PanelSkin.None
)

Parameters

panelSizes
Type: Vector2
Array with panel sizes to generate (also determine how many panels to return).
parent
Type: GeonBit.UI.EntitiesEntity
Optional parent entity to add panels to.
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