Progetto H — API Reference API & Scripting Documentation
Function Client Moderate

Canvas:DrawBox

Draws an unfilled box on the Canvas<br/></br>This method can only be called from inside <code>Update</code> event

Syntax

Lua
my_canvas:DrawBox(screen_position, screen_size, thickness, render_color = Color.WHITE, blend_mode = BlendMode.Opaque)

Parameters

Name Type Default Description
screen_position Vector2D
screen_size Vector2D
thickness float
render_color optional Color Color.WHITE
blend_mode optional BlendMode BlendMode.Opaque