Funzione
Veloce
WebUI:SetLayout
Sets the Layout as Canvas on Screen. <strong>Anchors</strong>:<br/><br/><img src='/img/docs/anchors.webp' />
Non ancora tradotto
Sintassi
my_web_ui:SetLayout(screen_location/offset_left_top = Vector(0, 0), size/offset_right_bottom = Vector(0, 0), anchors_min = Vector(0, 0), anchors_max = Vector(1, 1), alignment = Vector(0.5, 0.5))
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
screen_location/offset_left_top
facoltativo
|
Vector2D | Vector(0, 0) |
— |
size/offset_right_bottom
facoltativo
|
Vector2D | Vector(0, 0) |
— |
anchors_min
facoltativo
|
Vector2D | Vector(0, 0) |
— |
anchors_max
facoltativo
|
Vector2D | Vector(1, 1) |
— |
alignment
facoltativo
|
Vector2D | Vector(0.5, 0.5) |
— |