Download file when double click this asset. More...
Inherits ScriptableObject.
Public Member Functions | |
void | Download () |
According to the settings to download the file with displaying the progress bar. More... | |
Public Attributes | |
bool | sync |
Block the main thread while downloading. More... | |
string | url = "https://" |
The remote URL to download from. More... | |
string[] | args = {} |
The arguments of the url , if which is a composite format string . More... | |
string | file = "Assets/" |
The local file path to save to. More... | |
bool | overwrite |
Overwrite silently or show a confirm dialog if the file existed. More... | |
bool | reveal |
Reveal the file after done. More... | |
bool | open |
Open the file after done. More... | |
Download file when double click this asset.
The causes of this are:
Make each downloader asset with:
url
format "https://docs.google.com/spreadsheets/d/{0}/export?gid={1}&format=csv".args
with specified document id and gid.Then further more to speed up:
Shortcut
package to assist development."AssetDatabase.OpenAsset(objects);"
to a new CodeExecutor.codeSnippet
.Refer to this page, the URL format to download from Google Sheet: "https://docs.google.com/spreadsheets/d/LONG_ID_STRING/export?gid=GID&format=csv"
void Download | ( | ) |
According to the settings to download the file with displaying the progress bar.
bool sync |
Block the main thread while downloading.
It looks no difference when download one file at a time, since the progress bar shown. But blocking may be better when batch downloading by turns. Note, not to set sync
if the url
might be redirected, otherwise the process may be blocked.
string url = "https://" |
The remote URL to download from.
It should also be able to copy a file from a local path.
string [] args = {} |
The arguments of the url
, if which is a composite format string
.
string file = "Assets/" |
The local file path to save to.
bool overwrite |
Overwrite silently or show a confirm dialog if the file existed.
bool reveal |
Reveal the file after done.
bool open |
Open the file after done.