lib
Unreal launching and project tools.
 create_unreal_project(project_name, unreal_project_name, ue_version, pr_dir, engine_path, dev_mode=False, env=None) 
 This will create .uproject file at specified location.
As there is no way I know to create a project via command line, this is easiest option. Unreal project file is basically a JSON file. If we find the AYON_UNREAL_PLUGIN environment variable we assume this is the location of the Integration Plugin and we copy its content to the project folder and enable this plugin.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| project_name | str | Name of the project in AYON. | required | 
| unreal_project_name | str | Name of the project in Unreal. | required | 
| ue_version | str | Unreal engine version (like 4.23). | required | 
| pr_dir | Path | Path to directory where project will be created. | required | 
| engine_path | Path | Path to Unreal Engine installation. | required | 
| dev_mode | bool | Flag to trigger C++ style Unreal project needing Visual Studio and other tools to compile plugins from sources. This will trigger automatically if  | False | 
| env | dict | Environment to use. If not set,  | None | 
Throws
NotImplementedError: For unsupported platforms.
Returns:
| Type | Description | 
|---|---|
| None | None | 
Deprecated
since 3.16.0
Source code in client/ayon_unreal/lib.py
 | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |  | 
 get_compatible_integration(ue_version, integration_root) 
 Get path to compatible version of integration plugin.
This will try to get the closest compatible versions to the one specified in sorted list.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| ue_version | str | version of the current Unreal Engine. | required | 
| integration_root | Path | path to built-in integration plugins. | required | 
Returns:
| Type | Description | 
|---|---|
| List[Path] | list of Path: Sorted list of paths closest to the specified version. | 
Source code in client/ayon_unreal/lib.py
 | 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 |  | 
 get_editor_exe_path(engine_path, engine_version) 
 Get UE Editor executable path. Attempt to retrieve from project settings first.
Source code in client/ayon_unreal/lib.py
 | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |  | 
 get_editor_exe_path_fallback(engine_path, engine_version) 
 Get UE Editor executable path.
Source code in client/ayon_unreal/lib.py
 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |  | 
 get_engine_versions(env=None) 
 Detect Unreal Engine versions.
This will try to detect location and versions of installed Unreal Engine. Location can be overridden by UNREAL_ENGINE_LOCATION environment variable.
.. deprecated:: 3.15.4
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| env | dict | Environment to use. | None | 
Returns:
| Name | Type | Description | 
|---|---|---|
| OrderedDict | dictionary with version as a key and dir as value. so the highest version is first. | 
Example
get_engine_versions() { "4.23": "C:/Epic Games/UE_4.23", "4.24": "C:/Epic Games/UE_4.24" }
Source code in client/ayon_unreal/lib.py
 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |  |