Function
Moderate
Canvas:DrawMaterialFromWebUI
Draws a WebUI on the Canvas<br/></br>This method can only be called from inside <code>Update</code> event<br/><br/><strong>Note:</strong> Due how Unreal handles Render Targets, drawing material on Canvas result on a weird translucent effect. Hope in the future to be improved.
Syntax
my_canvas:DrawMaterialFromWebUI(webui_entity, screen_position, screen_size, coordinate_position, coordinate_size = Vector2D(1, 1), rotation = 0, pivot_point = Vector2D(0.5, 0.5), blend_mode = BlendMode.Opaque)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
webui_entity
|
WebUI | — | — |
screen_position
|
Vector2D | — | — |
screen_size
|
Vector2D | — | — |
coordinate_position
|
Vector2D | — | — |
coordinate_size
optional
|
Vector2D | Vector2D(1, 1) |
— |
rotation
optional
|
float | 0 |
— |
pivot_point
optional
|
Vector2D | Vector2D(0.5, 0.5) |
— |
blend_mode
optional
|
BlendMode | BlendMode.Opaque |
— |