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 version (year).
If more than one Unity Editor satisfies specified version, then latest one is returned.
- Assembly
- Cake
.Unity .dll - Namespace
- Cake
.Unity - Containing Type
- UnityAliases
Syntax
public static UnityEditorDescriptor FindUnityEditor(this ICakeContext context, int year)
Examples
var editor = FindUnityEditor(2018);
if (editor != null)
Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
else
Warning("Cannot find Unity Editor 2018");
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | |
year | int | Year part of Unity version (aka major version). |
Return Value
Type | Description |
---|---|
Unity |
Descriptor of Unity Editor or null. |