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
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
Recent Comments
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
- on UI Scroll View automatic Content height
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











