| Property |
Type |
Note |
| Aka |
String |
Name for the widget |
| MinDesiredSlotHeight |
Number |
|
| MinDesiredSlotWidth |
Number |
|
| SlotPadding |
Number or Number Array (Length = 2 or 4) |
|
| Slots |
Array |
The array which contain children widgets |
| ToolTipText |
String |
|
| Visibility |
Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All |
|
functions what can be called from ChameleonData¶
| FunctionName |
Description |
|
| append_slot_from_json |
Add a child widget through the content of the JSON string. It's for the widget which has 'Slots'. |
|
| remove_widget_at |
Remove a child widget at Specified slot or widget. |
|
Examples¶
Example 1:
"SUniformGridPanel": {
"Slots": [
{
"Column_Row": [0, 0],
"SButton": {
"Text": "Tile 0_0",
"ButtonColorAndOpacity": [1, 1, 1, 0.5]
}
},
{
"Column_Row": [1, 0],
"SButton": {
"Text": "Tile 1_0",
"ButtonColorAndOpacity": [1, 1, 1, 0.5]
}
},
{
"Column_Row": [2, 0],
"SButton": {
"Text": "Tile 2_0",
"ButtonColorAndOpacity": [1, 1, 1, 0.5]
}
},
{
"Column_Row": [0, 1],
"SButton": {
"Text": "Tile 0_1",
"ButtonColorAndOpacity": [1, 1, 1, 0.5]
}
},
{
"Column_Row": [1, 1],
"SButton": {
"Text": "Tile 1_1",
"ButtonColorAndOpacity": [1, 1, 1, 0.5]
}
},
{
"Column_Row": [2, 1],
"SButton": {
"Text": "Tile 2_1",
"ButtonColorAndOpacity": [1, 1, 1, 0.5]
}
}
]
}