Official website: www.fairygui.com
Step 1, we use the editor to create the UI.
Step 2, we only need a little code to display it.
import * as fgui from "fairygui-dom";
async function start() {
await fgui.UIPackage.loadPackage("assets/Package1");
let view = fgui.UIPackage.createObject("Package1", "Main");
view.makeFullScreen();
fgui.GRoot.inst.addChild(view);
}
start();