Created
April 1, 2015 20:30
-
-
Save jonathanpeppers/31ce93c68db1c64efdfe to your computer and use it in GitHub Desktop.
FAKE helpers for invoking Unity3D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let UnityPath = | |
if isUnix then @"/Applications/Unity/Unity.app/Contents/MacOS/Unity" else @"C:\Program Files (x86)\Unity\Editor\Unity.exe" | |
let Unity args = | |
let fullPath = Path.GetFullPath(".") | |
let result = Shell.Exec(UnityPath, "-quit -batchmode -logFile -projectPath \"" + fullPath + "\" " + args) | |
if result < 0 then failwithf "Unity exited with error %d" result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment