News for hackers. Stuff that matters.
Re:WebXR by jayd16 on Saturday May 27, 2023 @07:35PM (#36099526)
For Unity, I think you can just dynamically load DLLs as long as you're not on a plane form that requires AOT (iOS). Even then, for both Unreal and Unity there are many options to use scripting languages like js or lua or what have you.
Re:WebXR by hoc on Saturday May 27, 2023 @07:57PM (#36099690)
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.
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.

Re:WebXR by jimmySixDOF on Sunday May 28, 2023 @12:01PM (#36105220)
Unity support for WebXR has been at the back of thier roadmap Under Consideration [1] for years and the valiant community driven efforts (@DePanther) are just too hard to keep current so lot of key Unity release improvements are missing.

[1] https://unity.com/roadmap/unity-platform/arvr