15
2023
Run webgl application locally using python

Unity has new runtime tax/fee, but it doesn’t apply for webgl games!
So how about you bundle your webgl build with simple batch script that starts webserver using python.
STEPS
– Build your webgl normally
– Copy this runwebgl.bat file into your webgl build folder (next to index.html) https://gist.github.com/unitycoder/0a1014d784c6b7884b3ab96e1e13806f
– Then run runwebgl.bat and it starts webserver (*only if Python is available to run from path, and opens your index.html)
TODO
– Test if compression works? brotli/gzip
—————————
https://forum.unity.com/threads/unity-plan-pricing-and-packaging-updates.1482750/
ALTERNATIVES
– Create simple webserver using c# and include that with your webgl build
– Or include any standalone webserver.exe with your webgl build
– Node.js can spin webserver also
Related Posts
Leave a comment
Recent posts
- Favorites in PackageManager
- 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
Recent Comments
- on Mesh Exploder (sources)
- 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)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











