Column
GnosisUIElementColumn is a display element (elementId = "Column") for vertical child layout.
Attach a VerticalLayoutGroup on the same GameObject (or assign in the inspector). At runtime, CreateElement parameters map to the same fields Unity exposes on HorizontalOrVerticalLayoutGroup / LayoutGroup.
Runtime parameters
In addition to built-in element parameters, GnosisUIElementColumn supports:
spacing(float)padding(object) —{ left, right, top, bottom }(integers). Merges with the current padding; unspecified sides keep their previous values.paddingLeft,paddingRight,paddingTop,paddingBottom(int) — merge over current padding when set.childAlignment(string) —TextAnchorname (e.g.UpperLeft,MiddleCenter,LowerRight).childForceExpandWidth,childForceExpandHeight(bool)childControlWidth,childControlHeight(bool)childScaleWidth,childScaleHeight(bool)reverseArrangement(bool)
Example — JSON payload shape
{
"service": "GameUI",
"function": "CreateElement",
"parameters": {
"elementId": "Column",
"parentId": "ui.Panel",
"parameters": {
"name": "SidebarColumn",
"spacing": 6.0,
"paddingLeft": 12,
"paddingRight": 12,
"paddingTop": 8,
"paddingBottom": 8,
"childAlignment": "UpperLeft",
"childForceExpandWidth": true,
"childForceExpandHeight": false,
"childControlWidth": true,
"childControlHeight": true,
"childScaleWidth": false,
"childScaleHeight": false,
"reverseArrangement": false
}
}
}Example — DescribeUIElement
payload.Set("elementId", "Column");
return CallService("GameUI", "DescribeUIElement", payload);Last updated on