Skip to main content

Posts

Showing posts with the label project folder

How To Sync Up Unity Projects

Want to work on the same Unity Project over multiple computers? Even have multiple people work on one project all at once? Well theirs a free easy method that works! Step 1: Go to dropbox.com . Make an account and download their soft ware. You have 2GB of space for free! It's not much to expand on that either, but I've yet to run across any space issues. Step 2: Open up Unity. Go to file>New Project. Under project location, Browse, and create a new folder under your dropbox folder. Make that where your project lies. Step 3: Go share! You can install dropbox at any computer and log in with your account. Your assets will be loaded into the dropbox folder. To open you Unity project from dropbox, simply go to file>open project, then find the folder that contains your unity project and hit open. You can also log into your dropbox account, and send other drop box users an invitation to share your folder, you have to know their email. When they accept their drop box ...

Loading Project Assets Through A Script (dynamically)

To do so, you first need to start by creating a new folder and naming it "Resources" You put whatever you want to load in the script in the folder, textures, prefabs, all that stuff. So if you want to Instantiate a prefab, you would simply put this in the code. var boat : GameObject = (Resources.Load("Boat")); Instantiate(boat, location, rotation); Simple right? If you want to get something out of a folder in the resources folder you just say: var smallBoat : GameObject = (Resources.Load("folder name/Small Boat")); Ta da. Easy. Read more at Unity's scripting Reference here