Hey all,
I’ve seen some of the new UI editor features and native deployment capabilities. So, I’m wondering:
- Can you export to native apps and include the DOM elements? (For example, I currently use HTML buttons/divs for my inventory slots, etc.)
- How the performance of BJS UI stands against using DOM elements?
There is no DOM in Babylon Native. So no performance check
But with Babylon React Native, you can have react GUI elements and babylon.js engine.
2 Likes
Gotcha. I figured DOM wouldn’t be in native, but still wondering if using the Babylon GUI system would be performant compared to DOM elements in browser?
That’s a bit hard to answer. It depends on the situation. In some Babylon Native situations, JIT is not enabled and will have a performance issues if you run a lot of JS (i.e., have lots of objects in the scene, including GUI elements). Furthermore, GUI support in Babylon Native is experimental right now, so keep that in mind.
1 Like
Hi there @morterra just checking in, was your question answered?
No, just gonna not bother messing with it