GUILayout
Builds the element tree of a GUI. The layout arranges the building blocks offered by GUILayoutScope inside GUILayoutScope.body, with containers created using the regular div {} builder. A layout must call GUILayoutScope.sidebar exactly once, as the sidebar holds the compartments of the GUI.
gui.layout = {
body.div("fullscreen") {
sideCanvas()
div("container") {
sidebar()
toolbar()
}
}
}Content copied to clipboard
The element classes and their styles are listed with guiStyles.