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
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 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 |
|
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
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
|
get_editor_exe_path(engine_path, engine_version)
Get UE Editor executable path.
Source code in client/ayon_unreal/lib.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
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
17 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 |
|