An open API service indexing awesome lists of open source software.

https://github.com/cake-contrib/cake.unity

Unity build support for Cake.
https://github.com/cake-contrib/cake.unity

cake-addin

Last synced: 5 days ago
JSON representation

Unity build support for Cake.

Awesome Lists containing this project

README

        

Cake.Unity
==========

Unity build support for [Cake](https://github.com/cake-build/cake).

More documentation [can be found here](https://cakebuild.net/dsl/unity/).

Examples
-------

```csharp
#addin Cake.Unity

Task("Default").Does(() =>
UnityEditor(
2018, 3,
new UnityEditorArguments
{
ProjectPath = "A:/UnityProject",
BuildWindowsPlayer = "A:/Build/game.exe",
LogFile = "A:/Build/unity.log",
},
new UnityEditorSettings
{
RealTimeLog = true,
}));

RunTarget("Default");
```

```csharp
#addin Cake.Unity

Task("Find-Unity-Editors").Does(() =>
{
foreach (var editor in FindUnityEditors())
Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
});

Task("Find-Unity-Editor-2018.3").Does(() =>
{
var editor = FindUnityEditor(2018, 3);
if (editor != null)
Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
else
Warning("Cannot find Unity Editor 2018.3");
});

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

Task("Default")
.IsDependentOn("Find-Unity-Editors")
.IsDependentOn("Find-Unity-Editor-2018.3")
.IsDependentOn("Find-Latest-Unity-Editor");

RunTarget("Default");
```