Variable datGUIConst

datGUI: Promise<null | GUI> = ...

Creates a dat.GUI instance for use in the browser. It checks for the availability of the dat.gui library and global window flags (USE_DAT_GUI and OPEN_DAT_GUI) to conditionally load the GUI.

Example

datGUI.then((gui) => {
if (gui) {
// use dat.gui
}
});