Skip to content

Instantly share code, notes, and snippets.

@NNNIC
Last active July 26, 2018 01:44
Show Gist options
  • Save NNNIC/cd4753f844e280ec35b3b8650a087503 to your computer and use it in GitHub Desktop.
Save NNNIC/cd4753f844e280ec35b3b8650a087503 to your computer and use it in GitHub Desktop.
Unity start batch.
#!/bin/bash
cd `dirname $0`
curdir=`pwd`
open -a /Applications/Unity2018.1.2/Unity.app --args -projectpath ${curdir}/unityproject
read a
cd /d %~dp0
if exist %~dp0unityProject goto :_open
start "" "%unitypath2018_2%" -createproject %~dp0unityProject
goto :eof
:_open
start "" "%unitypath2018_2%" -projectPath %~dp0unityProject
goto :eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment