Opening Multiple Unity3D Instances
Airfare Daily Deals eCigarettes Eyeglasses Hotels Jewelry Online Backup Online Dating Online Printing Online Tickets Skin Care Textbook Rentals Vitamins Web Hosting Weddings
Find thousands of shopping-related forums
SEARCH

Opening Multiple Unity3D Instances

Unity3D is a game engine, a program used for creating games for Mac and PC, iOS and Android, and on webpages. If you have multiple projects you’re working on, it can sometimes be a pain to have to close one in order to be able to open the other. This is where you would need a way to open two instances of Unity. In this article, I show you how to do this.

Unity 3D can run on both Mac and PC. This means there are different ways to open additional Unity instances, according to which operating system you’re using. In Windows, this is very easy. You just double-click the app icon to open it once, and if you double-click it again, another instance of Unity 3D is opened. In Mac however, when you click the icon while Unity is running, it will just focus on the open window, so you need to go a little further to be able to do it on Mac. There are different ways to get to it.

Manually

If you want to do this only once, and you know you’re not going to have to do it a lot in the future, you’ll probably want to do it manually. You just right-click on the unity.app icon in the Finder, and choose “Show Package Contents”. Then you browse to “/Contents/MacOS” and double click “Unity” (NOTE: this file doesn’t have the traditional Unity icon, but a Terminal icon.). Another way to open an additional instance manually is to do it in the console. You just open the terminal window and insert this code:

/Applications/Unity/Unity.app/Contents/MacOS/Unity -projectPath "/path/to/your/project"

Of course, you have to replace “/path/to/your/project” with the actual path to the project you want to open. You can also choose not to add the -projectPath part to the statement, which will open a Unity instance with the default project, or with the project wizard, depending on how you specified it in Unity’s preferences.

Scripted

If you know you’re going to have to do this a lot in the future, you’ll probably want to create a script in the Automator, which you can then export as a dedicated application (Which I also did.). Doing this is simple. You just open the Automator application (If you’ve never used it before, it can be found in the Utilities folder.), and when the new project wizard opens, you choose “Workflow”. Then, in the left side bar, you open the tab Actions, and then under Library->Utilities, you double click the action “Run Shell Script”. Then, a new tab will appear in the main window. Here, you can type your code. Just insert the same line of code we used to open it in the console, and then go to File->Save... and save it where you need it. Also, make sure to choose Application under File Format when saving. Now, whenever you double-click this application, a new instance of Unity 3D will be opened.

Need an answer?
Get insightful answers from community-recommended
experts
in Computer Programming & Languages on Knoji.
Would you recommend this author as an expert in Computer Programming & Languages?
You have 0 recommendations remaining to grant today.
Comments (0)
ARTICLE DETAILS
RELATED ARTICLES
ARTICLE KEYWORDS