UnityAliases.

UnityEditor(ICakeContext, UnityEditorDescriptor, UnityEditorArguments, UnityEditorSettings) Method

Summary

Executes Unity Editor via command-line interface.
Assembly
Cake.Unity.dll
Namespace
Cake.Unity
Containing Type
UnityAliases

Syntax

public static void UnityEditor(this ICakeContext context, UnityEditorDescriptor unityEditor, UnityEditorArguments arguments, UnityEditorSettings settings = null)

Examples

UnityEditor(
    FindUnityEditor(2018, 3) ?? throw new Exception("Cannot find Unity Editor 2018.3."),
    new UnityEditorArguments
    {
        ProjectPath = "A:/UnityProject",
        BuildWindowsPlayer = "A:/Build/game.exe",
        LogFile = "A:/Build/unity.log",
    },
    new UnityEditorSettings
    {
        RealTimeLog = true,
    });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext
unityEditor UnityEditorDescriptor Unity Editor descriptor provided by a FindUnityEditor method.
arguments UnityEditorArguments Unity Editor command-line arguments.
settings UnityEditorSettings Optional settings which affect how Unity Editor should be executed.

Return Value

Type Description
void