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
Executes Unity Editor via command-line interface.
Syntax
public static void UnityEditor(this ICakeContext context, FilePath unityEditorPath, UnityEditorArguments arguments)
Examples
var unityEditor = FindUnityEditor(2018, 3) ?? throw new Exception("Cannot find Unity Editor 2018.3.");
UnityEditor(unityEditor.Path, new UnityEditorArguments
{
ProjectPath = "A:/UnityProject",
BuildWindowsPlayer = "A:/Build/game.exe",
LogFile = "A:/Build/unity.log",
});
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
CakeNamespaceImportAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
|
unityEditorPath |
FilePath |
Path to Unity Editor executable. |
arguments |
UnityEditorArguments |
Unity Editor command-line arguments. |
Return Value