3 ms·
Ok. will look into scripting plugins then for now, probably bridging some introspected interfaces. Would be nice if one could add/integrate existing JS libs but
by hoc 3y ago
Ok. will look into scripting plugins then for now, probably bridging some introspected interfaces. Would be nice if one could add/integrate existing JS libs but that's outside the Unity context.
- andybak 3y agoI'm keeping a close eye on WASM as a way to hotload code in Unity and as a way to access libraries from a variety of ecosystems.
- hoc 3y agoGood point. So many great exec environments already for WASM. Is there already something available for Unity? Maybe even with a source language and compiler built in? My focus currently is on creating code inside a running app (by the user) with references to selected Unity objects and their methods. While WebXR is great for this, the first (and sometimes only) SDK implementations for certain devices are usually in Unity. WASM probably ist great for hotloading but would need a more complex toolset available at runtime to edit and create. Interactivity and incremental code creation would also be better in a scripting envirnment.
- andybak 3y agoI went with Lua personally. I have mixed feelings about some aspects of the language but the ease of integration was hard to fault. I'm using Moonsharp which is interpreted rather than jitted but Blua looks promising if performance on the Lua side is critical.
- hoc 3y agoWill have a look at Moonsharp. Thanks. I got around lua so far, but bindigs seemed easy and a friend just chose it over integrating python just recently, so it seems to be getting some traction again, especially in tools and such to get a first step beyond a purely graphical UI.