Potential advantage to Unity is it was developed from the ground up to do all that. Unlike the browser.
Re:Unity Software Inc S-1
by fxtentacle on Tuesday August 25, 2020 @03:57AM
(#24269068)
Potential advantage to using a browser is that it actually works. Unlike Unity.
But in the end, Electron or Unity doesn't matter, both are equally bloated.
It's been a long time since I've done serious UI work, so am not aware of the latest grievances.
But it'd be great if stock UI frameworks were more like game (simulation) engines. Scene graphs, composition, event loops, command objects, etc.
Just like sufficiently complex C programs become buggy implementations of LISP, interesting UIs eventually recreate a poorly conceived and terribly implemented simulation engine.