News for hackers. Stuff that matters.
Re:WebXR by andybak on Sunday May 28, 2023 @11:02AM (#36104600)
I'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.
Re:WebXR by hoc on Sunday May 28, 2023 @02:51PM (#36106687)
Good 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.

Re:WebXR by andybak on Sunday May 28, 2023 @04:04PM (#36107256)
I 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.

Re:WebXR by hoc on Monday May 29, 2023 @03:09PM (#36116932)
Will 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.