LoginSignup
1
1

More than 5 years have passed since last update.

BuildTargetを指定してUnityを開く

Last updated at Posted at 2015-04-05

gitなどで共同作業していると、iPhone環境で開発していたのにいつの間にかBuildTargetがAndroidになっていて、予期せぬReImportに時間を取られてDeadEndということがたまによくあります。

gitignore的な物で何とかなりそうな気もしますがコマンドライン実行で

/Applications/Unity/Unity.app/Contents/MacOS/Unity -projectPath $PWD -buildTarget iPhone

上記のように-buildTargetに環境を指定してあげればその通り開きます。
ただこの場合terminalのプロセスとしてUnityが開いてしまうので

/Applications/Unity/Unity.app/Contents/MacOS/Unity -projectPath $PWD -buildTarget iPhone -quit

quitオプションを付けて、再度自分で開くのもありかもしれません。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1