Funzione
Lento
Widget:SpawnWidget3D
Spawns a 3D Widget actor rendering this Widget in the world
Non ancora tradotto
Sintassi
my_widget:SpawnWidget3D(location = Vector(0, 0, 0), rotation = Rotator(0, 0, 0), widget_space = WidgetSpace.World, auto_size = false, size = Vector2D(500, 500), auto_repaint_rate = -1, pivot = Vector2D(0.5, 0.5))
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
location
facoltativo
|
Vector | Vector(0, 0, 0) |
— |
rotation
facoltativo
|
Rotator | Rotator(0, 0, 0) |
— |
widget_space
facoltativo
|
WidgetSpace | WidgetSpace.World |
— |
auto_size
facoltativo
|
bool | false |
— |
size
facoltativo
|
Vector2D | Vector2D(500, 500) |
Only works if auto_size = false |
auto_repaint_rate
facoltativo
|
float | -1 |
Leaves -1 to repaint every frame |
pivot
facoltativo
|
Vector2D | Vector2D(0.5, 0.5) |
— |
Valore restituito
-
Widget3D
widget_3D