UnityAliases.

FindUnityEditor(ICakeContext) Method

Summary

Locates installed Unity Editor with latest version.
Assembly
Cake.Unity.dll
Namespace
Cake.Unity
Containing Type
UnityAliases

Syntax

public static UnityEditorDescriptor FindUnityEditor(this ICakeContext context)

Examples

var editor = FindUnityEditor();
if (editor != null)
    Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
else
    Warning("Cannot find Unity Editor");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext

Return Value

Type Description
UnityEditorDescriptor Descriptor of Unity Editor or null.