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
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











