13
2024
Using Moonsharp (LUA) + Unity Webgl
Moonsharp has some issues in webgl builds, but here’s working repo and some notes.
REPO ( unity 2022.3.7f1 )
– https://github.com/unitycoder/MoonSharpWebGL
WEBGL DEMO
– https://unitycoder.com/upload/demos/moonsharpwebgl/
NOTES
– You need to grab this webgl fix: https://github.com/moonsharp-devs/moonsharp/pull/146
– You need to do hard wiring (or at least i didn’t get the link.xml file to work properly, it stripped my methods from LuaAPI class?) https://www.moonsharp.org/hardwire.html )
– And then call that generated class.initialize, to keep it from getting stripped (i have that code inside Interpreter.cs Start() now as a test)
Related Posts
Leave a comment
Recent posts
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)