UnityAliases.

UnityEditor(ICakeContext, int, int, int, char, int, UnityEditorArguments, UnityEditorSettings) Method

Summary

Executes Unity Editor via command-line interface.

Determines Unity Editor location automatically by specified version.

Assembly
Cake.Unity.dll
Namespace
Cake.Unity
Containing Type
UnityAliases

Syntax

public static void UnityEditor(this ICakeContext context, int versionYear, int versionStream, int versionUpdate, char versionSuffixCharacter, int versionSuffixNumber, UnityEditorArguments arguments, UnityEditorSettings settings = null)

Examples

UnityEditor(
    2018, 3, 14, 'f', 1,
    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
versionYear int Year part of Unity version aka major version.
versionStream int Stream part of Unity version aka minor version.
versionUpdate int Update part of Unity version.
versionSuffixCharacter char Stage part of Unity version. "a" - mean Alpha, "b" - Beta, "p" - Patch, "f" - Final
versionSuffixNumber int SuffixNumber part of Unity version.
arguments UnityEditorArguments Unity Editor command-line arguments.
settings UnityEditorSettings Optional settings which affect how Unity Editor should be executed.

Return Value

Type Description
void