Constructor
WebUI.Default Constructor
Syntax
WebUI(name, path, visibility = WidgetVisibility.Visible, is_transparent = true, auto_resize = true, width = 0, height = 0)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
name
|
string | — | Used for debugging logs |
path
|
HTMLPath | — | Web URL or <a href='#html-path-searchers'>HTML File Path</a> as <code>file://my_file.html</code> |
visibility
optional
|
WidgetVisibility | WidgetVisibility.Visible |
if WebUI is visible on screen |
is_transparent
optional
|
boolean | true |
if WebUI background is transparent |
auto_resize
optional
|
boolean | true |
if should auto resize when screen changes its size (useful OFF when you are painting meshes with WebUI) |
width
optional
|
integer | 0 |
size of the WebUI width when you are not using auto_resize |
height
optional
|
integer | 0 |
size of the WebUI height when you are not using auto_resize |