unity.py¶
Unity sample script
usage: unity.py [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
[--logformat LOGFORMAT] [-c CLUSTER_ID]
{env,build,build-cloud,load,prepare,unload,upload-images} ...
Positional Arguments¶
command | Possible choices: env, build, build-cloud, load, prepare, unload, upload-images |
Named Arguments¶
--loglevel | Possible choices: DEBUG, INFO, WARNING, ERROR Set the script log level |
--logformat | Set the script log format |
-c, --cluster_id | |
The cluster id. If not set with the command line, uses the environment variable GENVID_CLUSTER_ID if it exists. Otherwise defaults to ‘local’ Default: “local” |
Sub-commands:¶
build¶
Build the specified target
unity.py build [-h] [-d] [-b] [-g GAME_DIR] [-v VERSION]
Named Arguments¶
-d, --debug | Build the game in debug Default: False |
-b, --bit32 | Build the game in 32bit Default: False |
-g, --game-dir | The game directory (relative to the current directory) (default: “app”) Default: “app” |
-v, --version | The engine version to use |
build-cloud¶
Build the specified target for the cloud
unity.py build-cloud [-h] [-d] [-b] [-g GAME_DIR] [-v VERSION]
Named Arguments¶
-d, --debug | Build the game in debug Default: False |
-b, --bit32 | Build the game in 32bit Default: False |
-g, --game-dir | The game directory (relative to the current directory) (default: “app”) Default: “app” |
-v, --version | The engine version to use |
load¶
Load the specified target definition in the cloud
unity.py load [-h] [{events,game,sample,} [{events,game,sample,} ...]]
Positional Arguments¶
targets | Possible choices: events, game, sample, [] The targets to load or unload |
prepare¶
Install the Genvid package into the sample project
unity.py prepare [-h] [-v VERSION]
Named Arguments¶
-v, --version | The engine version to use |
unload¶
Unload the specified target definition in the cloud
unity.py unload [-h] [{events,game,sample,} [{events,game,sample,} ...]]
Positional Arguments¶
targets | Possible choices: events, game, sample, [] The targets to load or unload |
upload-images¶
Upload tutorial images to the cloud
unity.py upload-images [-h] [-b BUCKET] [-p PATH] [-u] [--region REGION]
Named Arguments¶
-b, --bucket | Name of the bucket to use. Default is a combination of AWS account, bastion and cluster ids. |
-p, --path | The path in the bucket (default: “/images/unity_Cube”). Default: “/images/unity_Cube” |
-u, --update-config | |
Upload configuration in the current cluster. Default: False | |
--region | Region where the images will be uploaded. |