Skip to content

Instantly share code, notes, and snippets.

@jonathanpeppers
Created April 1, 2015 20:30
Show Gist options
  • Save jonathanpeppers/31ce93c68db1c64efdfe to your computer and use it in GitHub Desktop.
Save jonathanpeppers/31ce93c68db1c64efdfe to your computer and use it in GitHub Desktop.
FAKE helpers for invoking Unity3D
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