5 ms·
[OneJS](https://onejs.com/ https://onejs.com/) for Unity is a more modern entry in this space (Disclaimer: I'm the creator). Instead of embedding a browser/webv
by CreepGin 2y ago
[OneJS](https://onejs.com/ https://onejs.com/) for Unity is a more modern entry in this space (Disclaimer: I'm the creator). Instead of embedding a browser/webview, it lets you use web techs and directly integrates with UI Toolkit (Unity's native UI solution).
A general drawback of using web UIs in games is the lack of support for performant 2D vfx. It's something I'd like to tackle in 2025 with [Spark2D](https://github.com/Singtaa/Spark2D https://github.com/Singtaa/Spark2D).
- scq 2y agoCoherent Gameface does not embed a browser or webview either. https://docs.coherent-labs.com/cpp-gameface/what_is_gfp/overview/ https://docs.coherent-labs.com/cpp-gameface/what_is_gfp/over...
- doctorpangloss 2y agoThis is intriguing. Why not embedding a browser directly though? How do you feel about the Flutter based UI Widgets? (https://github.com/UIWidgets/com.unity.uiwidgets https://github.com/UIWidgets/com.unity.uiwidgets) In my experience there are two kinds of games: UI is the game or UI supports the game. When UI is the game, the performance bottleneck is almost always text rendering. From a DX POV there are many solutions, but from a performance POV, how can anyone compete with Skia or the native text APIs?
- CreepGin 2y agoI feel that no one can compete with Skia in terms of feature-richness. But performance, it'll really depend on the environment, hardware, and what you are doing. Unity's UI Toolkit, for example, is mesh and shader-based, so it can be highly performant for complex UIs. Interesting note: If you use OneJS with the NodeJS backend, you can use the wasm version of Skia and render all kinds of cool stuff onto a texture in Unity. Obviously the performance with that is not ideal for animation. But I was able to quickly and easily render music notations and charts on my deployed Unity app on Android using that method. > Why not embedding a browser directly though? How do you feel about the Flutter based UI Widgets? Mostly to avoid overheads on both disk space and runtime performance. QuickJS is only ~20MB to embed. And I have no experience with Flutter, unfortunately. =/