Funzione
Moderato
Canvas:DrawMaterial
Draws a Material 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.
Non ancora tradotto
Sintassi
my_canvas:DrawMaterial(material_path, screen_position, screen_size, coordinate_position, coordinate_size = Vector2D(1, 1), rotation = 0, pivot_point = Vector2D(0.5, 0.5), blend_mode = BlendMode.Opaque)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
material_path
|
MaterialPath | — | — |
screen_position
|
Vector2D | — | — |
screen_size
|
Vector2D | — | — |
coordinate_position
|
Vector2D | — | — |
coordinate_size
facoltativo
|
Vector2D | Vector2D(1, 1) |
— |
rotation
facoltativo
|
float | 0 |
— |
pivot_point
facoltativo
|
Vector2D | Vector2D(0.5, 0.5) |
— |
blend_mode
facoltativo
|
BlendMode | BlendMode.Opaque |
— |