By default, a new Unity install opens with a demo project. Unity 2.6 had an island, while Unity 3.0 has a G.I. Joe-style first-person shooter game. Follow these steps to start your own game project from scratch in Unity;
1. Start a New Project
Click File > New Project …
Every Unity sits in its own folder. In this dialogue, browse to or create a new folder where your project will live, and then click the Create button.
What you’re left with is this:
Ok – where’s the “Make Game” button at?
Here’s what’s going on behind the scenes:
Unity automatically creates three sub-folders in your Project folder. You won’t have to touch these folders – in fact, you really shouldn’t, because there’s metadata in there that might get botched if you start poking around. Most of the time, you can import assets directly through the Unity IDE (program).
2. Make a Scene
Unity Projects are comprised of Scenes. In Flash, it wasn’t really a good idea to use the Scenes, but in Unity, it’s darn near a requirement. What you’re looking at now is actually an unnamed Scenes. Scenes must be saved individually … whenever you try to leave one Scene to look at another, you’ll get a Save Confirmation prompt.
The smartest thing to do right off the bat is to save this Scene.
Go to File > Save Scene as …
Choose a name for your Scene. Some really simple examples are “Title”, “Credits”, “Win”, “Lose”, and “Game” for an extremely basic project. i’m calling this one “Game”, which is where all my main game action will take place.
Once you hit “Save”, two wonderful things will happen:
The name of your new Scene is reflected in the Title Bar of your project …
.. and a new Scene shows up in your Project panel.
The Project panel is where all your stuff goes. It’s very much like the Library in Flash. Scenes have a little Unity 3D icon next to them.
Put Your Scene in a Folder
The final thing you’ll want to do is to create a folder for your Scenes, and dump your Scene inside it.
At the top of the Project panel, click the Create button and choose “Folder”:
This button sees a lot of use in Unity.
While you’re here, check out all the other cook junk you can build.
You can also right click or alternate click on the Project panel to bring up this menu. Mac users can probably splat-click or some nonsense.
Rename the folder “Scenes” by right/alternate-clicking, slow double-clicking (Mac) or pressing F2 (PC)
Drag and drop the Game Scene inside the folder. Click the grey arrow to see what’s inside the folder.
How do i learn Unity 3D?
To learn more about developing games for Unity 3d and to learn the basic controls for getting around the program, read the first chapter of my book Unity 3D Game Development by Example. Next, buy four copies of the book (in case you accidentally drop three of them in the mud).
How do i build a timer in Unity?
When you’re a little further along, read this sample of Chapter 7 of my book, Don’t be a Clock Blocker. That’s how.
How do i program in Unity?
How do i transition from Flash to Unity?
Check out our article on Five Common AS3 to UnityScript Translations.
Alright – what else you got?
Like our style? For more free Unity 3D tutorials, sign up for our Unity 3D Game Development by Example newsletter, and we’ll send out a link whenever we post a new tutorial or article on Unity 3D.
Go forth and game!