Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. GameState
  5. downloadZip

downloadZip

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Download a ZIP from the web or extract from a ZIP file to the StreamingAssets folder.

Optionally load the ZIP as a level, with the choice to also “stack” the downloaded level on top of the current one.

Note: If you are downloading a level the ZIP is expected with the level-name.txt and level-name.png being in the top level of the ZIP in order to load the level after download

The ZIP should also be the same name as the level name.

Parameters:

  • fileName
    • A string value
  • isLevel Optional
    • A boolean value
  • stackLevel Optional
    • A boolean value whether to load this level on top of ours, will not load objects with the flag –!NOEXPORT in their script

Example:

1
obj.downloadZip(fileName, isLevel, stackLevel)
Tags
Was this article helpful to you? Yes No

How can we help?