You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bulk_upload_cli/README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ Find and connect support services on the [Help & Support](https://cloud.unity.co
19
19
- [Creating a csv from a Unity Cloud project](#creating-a-csv-from-a-unity-cloud-project)
20
20
- [Editing metadata in the csv file](#editing-metadata-in-the-csv-file)
21
21
- [Use an existing configuration file](#use-an-existing-configuration-file)
22
+
- [Fine-tune the asset creation and upload](#fine-tune-the-asset-creation-and-upload)
23
+
-[Troubleshoot](#troubleshoot)
22
24
-[See also](#see-also)
23
25
-[Tell us what you think](#tell-us-what-you-think)
24
26
@@ -62,10 +64,10 @@ The bulk upload sample script is provided under the [Unity ToS license](../LICEN
62
64
63
65
### Select the input method
64
66
65
-
If you have a CSV respecting the template, when prompted about it, you can select yes and provide the path to the CSV file. Otherwise, you will be prompted about your assets location.
66
-
67
67
Select one of the three strategies as the input method for bulk asset creation:
68
68
69
+
-**listed in a casv respecting the CLI tool template**: Select this option if you built a CSV listing your assets location and details using the provided template.
70
+
* Provide the path to the csv file.
69
71
-**in a .unitypackage file**: Select this option if your assets are in a .unitypackage file. The tool extracts the assets from the .unitypackage file and uploads them to the cloud.
70
72
* Provide the path to the .unitypackage file.
71
73
-**in a local unity project**: Select this option if your assets are in a local Unity project.
@@ -125,6 +127,21 @@ To use an existing configuration file, follow these steps:
125
127
3. On the next run with the `--create` flag, you can add the `--config` flag followed by the name of the configuration file you created. All the answers you gave during the first run will be loaded from the configuration file.
126
128
4. Alternatively, you can use the `--config-select` flag to select a configuration file from the list of existing configuration files.
127
129
130
+
### Fine-tune the asset creation and upload
131
+
132
+
With the `app_settings.json` file, you can fine-tune the amount of assets created and uploaded in parallel. Depending on your network, the number of assets, and the size of the assets, you can adjust the following settings:
133
+
-`parallelCreationEdit`: The number of assets created and updated in parallel. This settings can be kept high as it is not resource intensive.
134
+
-`parallelAssetUpload`: The number of assets that will have their files uploaded in parallel. This setting should be adjusted depending on the size of the assets and the network speed. When dealing with large files (>100MB), it is recommended to keep this setting low (1-2) to avoid time out.
135
+
-`parallelFileUploadPerAsset`: The number of files uploaded in parallel for each asset. This setting should be adjusted depending on the number of files and the network speed. It is recommended to adjust it according to `parallelAssetUpload`, as the total number of files uploaded in parallel will be `parallelAssetUpload * parallelFileUploadPerAsset`.
136
+
137
+
In the `app_settings.json` file, you can also add environment variables that will be set at runtime. This is useful when running the CLI tool in a private network environment.
138
+
139
+
## Troubleshoot
140
+
141
+
Here's a list of common problems you might encounter while using the CLI Tool.
142
+
-`error ModuleNotFoundError: No module named ...`: This can be caused by a uncompleted installation. Start by uninstalling `unity_cloud` with `pip(3) uninstall unity_cloud`, then re-run the CLI tool installation.
143
+
- Timeout exception during the upload step: When uploading large files, it is recommended to lower the amount of parallel uploads allowed. To do so, refer to the [Fine-tune the asset creation and upload](#fine-tune-the-asset-creation-and-upload) section.
144
+
128
145
## See also
129
146
For more information, see the [Unity Cloud Python SDK](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk) documentation.
0 commit comments