Function
Slow
Widget:SpawnWidget3D
Spawns a 3D Widget actor rendering this Widget in the world
Syntax
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))
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
location
optional
|
Vector | Vector(0, 0, 0) |
— |
rotation
optional
|
Rotator | Rotator(0, 0, 0) |
— |
widget_space
optional
|
WidgetSpace | WidgetSpace.World |
— |
auto_size
optional
|
bool | false |
— |
size
optional
|
Vector2D | Vector2D(500, 500) |
Only works if auto_size = false |
auto_repaint_rate
optional
|
float | -1 |
Leaves -1 to repaint every frame |
pivot
optional
|
Vector2D | Vector2D(0.5, 0.5) |
— |
Returns
-
Widget3D
widget_3D