Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Costruttore Condiviso

WebUI.Default Constructor

Sintassi

Lua
WebUI(name, path, visibility = WidgetVisibility.Visible, is_transparent = true, auto_resize = true, width = 0, height = 0)

Parametri

Nome Tipo Predefinito Descrizione
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 facoltativo WidgetVisibility WidgetVisibility.Visible if WebUI is visible on screen
is_transparent facoltativo boolean true if WebUI background is transparent
auto_resize facoltativo boolean true if should auto resize when screen changes its size (useful OFF when you are painting meshes with WebUI)
width facoltativo integer 0 size of the WebUI width when you are not using auto_resize
height facoltativo integer 0 size of the WebUI height when you are not using auto_resize