This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Unity.
Summary
Locates installed Unity Editor by full version.
Syntax
public static UnityEditorDescriptor FindUnityEditor(this ICakeContext context, int year, int stream, int update, char suffixCharacter, int suffixNumber)
Examples
var editor = FindUnityEditor(2018, 3, 14, 'f', 1);
if (editor != null)
Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
else
Warning("Cannot find Unity Editor 2018.3");
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
CakeNamespaceImportAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
|
year |
int |
Year part of Unity version aka major version. |
stream |
int |
Stream part of Unity version (aka minor version). Usually 1, 2 and 3 mean tech stream while 4 is long term support. |
update |
int |
Update part of Unity version. |
suffixCharacter |
char |
Stage part of Unity version. "a" - mean Alpha, "b" - Beta, "p" - Patch, "f" - Final |
suffixNumber |
int |
SuffixNumber part of Unity version. |
Return Value