if (Button(`loadButton`).clicked) { char[] path = Input(`pathInput`).text; try { scope loader = new HmeLoader; loader.load(path); foreach (v; views) { v.scene = loader.scene; } } catch (Exception e) { Trace.formatln("Cannot load the scene: {}", e.toString); } } if (Button(`unloadButton`).clicked) { foreach (v; views) { v.scene = null; } }