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.
- Host: GitHub
- URL: https://github.com/cake-contrib/cake.unity
- Owner: cake-contrib
- License: mit
- Created: 2014-09-23T19:18:33.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2023-04-04T06:39:03.000Z (about 2 years ago)
- Last Synced: 2025-04-11T05:20:14.302Z (18 days ago)
- Topics: cake-addin
- Language: C#
- Homepage: https://cakebuild.net/extensions/cake-unity/
- Size: 132 KB
- Stars: 36
- Watchers: 5
- Forks: 16
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.UnityTask("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.UnityTask("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");
```