Live Update

← Back WEBGL platform setup guide
Use this guide only if you target WEBGL platform
  1. Complete basic setup by following this guide
  2. Switch to LiveUpdate "Parameters" tab, toggle on "Manual load" and save database. Now LiveUpdate add-on will not perform the loading automatically, and you need to trigger it manually
  3. Add new GameObject to your startup scene (name it DatabaseLiveUpdate). Download this preloader script, change txt extension to cs extension and attach it to DatabaseLiveUpdate GameObject. This component will trigger LiveUpdate load.
  4. Data from GoogleSheet will be loaded asynchronously, over several frames, and LiveUpdatePreloader.Ready method will be invoked when data is loaded.
    To keep things simple - we will just update UI Text component with a number of loaded rows
  5. Open Build settings, switch to WebGl platform and build the project
  6. Launch command line utility (terminal), switch to your build folder and run local web server. If you do not have web server, install python 3 and run the following command python -m http.server --cgi 8360 This command starts local HTTP server on 8360 port
  7. Open you browser and navigate to http://localhost:8360 address- if you set up everything properly you should see your application and number 4 at the center of the screen (4 rows were loaded from GoogleSheets)
← Back to Live Update