In this article we’ll see how we can create/load a new project/scene in unity 3D. We’ll also see how to work with layouts,toolbar, and views in this article.
Creating a new project
So to work with unity you must always start with a project as unity is a project based development tool. When you create a new project, a folder is created, with sub-folder containing the required files. To create a new project:
- Open Unity
- If Unity has opened an existing project, from File,Select open New Project.
- Select the Create New Project Tab, select directory/folder by clicking Browse Button and give it a name of your choice as shown below:
Now Select Character Controller, Light Cookies, Light Flares, Particles, Physics Materials, Projectors, Scripts, Skyboxes, Terrains and Water (Basic) from the available packages list.
- Click Create Button. Now unity will closes and reopens to show your new project.
In your new scene, you will see a camera in the Hierarchy view and several items in the project view as shown below. When you create a new project, a folder called Assets is created in your file system and its contents are displayed in the project view.
Before going any further, save the scene. You can think the scenes as levels. A project can contain several scenes. You can save the scene by File menu -> Save Scene . The new Scene is saved in the Assets Folder.
Understanding The Layout
Now there are many ways to rearrange the layout of Unity Interface. Suppose you are using standard 2×3 layout as shown below:
The standard 2×3 Layout as shown above allows you to have access to the scene view when you are in Play mode. You can change the layout by selecting from the Layout drop-down in the upper right area of the application.
The Scene view shown below is where you build the visual aspects of your scene. Where you plan and execute your ideas. Actually the scene view is the one showing your camera icon and grid.
The Game Window is where you test your game before building in the runtime environment. You can’t select objects in the view and unlike the Scene view, it has no default lighting. You’ll have to use the Main Camera to see objects in the Game window.
Views in Unity
There are two views in the Unity known as Hierarchy View and the Project View.
The Project view contains all the assets available to the current project as well as all scenes or levels available for the finished game or application.
It is a mirror of the Assets folder in the directory where the project resides. Removing assets from this location deletes them from the hard drive. Make sure removing assets from the directory in the explorer removes them from the project view and could break the scene.
Inspector in Unity
You use the inspector to access the various properties and components for objects you’ve selected in either the Hierarchy or Project views. You can also access other scene-related information here. Select the only object that’s in the scene now, the Main Camera, from Hierarchy view, and then take a look at the Inspector, as shown below:
Toolbar in Unity
Unity Toolbar, shown above, comprised of five different controls.
The Transform tools, provide functionality for navigating the scene and transforming objects. The button on the far left, The pan tool, can also become orbit and zoom tools for navigating and adjusting the Scene view.
You can click and drag to move the view around. To orbit the current viewport center, hold the Alt key down, while clicking and dragging. And to zoom, hold the Alt key + right mouse button.
There are other ways to perform these tasks, as you’ll see when you add an object to the scene. But don’t test the navigation until you have an object to work with.
The remaining three buttons are for transforming objects in the scene in the edit mode. The available transforms are move,rotate and scale.
Objects can be transformed in different coordinate systems and from different pivot points. The next set of controls, to the right of the Navigation tools let you toggle between the choices.
The center controls are the Play mode controls that you to see how the game work in real time, as if you are a player.
That’s all if you wan’t to ask anything related to this article, feel free to contact me.