Unity 3D
Unity 3D
ibjects.com
http://docs.unity3d.com/Documentation/Manual/index.html
• Introduction
• Installing
• Unity Basics
• Scripting
• Assets
• Scenes
• Game Objects
• Prefabs
• Build
ibjects.com
A screen shot of the game created using Unity 3D Engine for PC.
As you can see in the screen shot that the graphics are realistic. See how the shadow
of tree is accordingly to the sun light and the rest of graphics are also giving it a
realistic view. You also play these type of games now a days in your PC’s. Ever
wonder how they are created? Well now you can do it using Unity Engine.
Introduction ibjects.com
The extension of a unity file is .unity. You can make games on unity for different
platforms that include Android and iOS.
Introduction ibjects.com
Unity is a multi-platform, integrated IDE for scripting
games, and working with 3D virtual worlds Including:
• Game engine
3D objects / lighting / physics / animation / scripting
• 3D terrain editor
• 3D object animation manager
• GUI system
• Executable exporter many platforms:
Native application / web player / iPhone / Android / Wii
Introduction ibjects.com
System Requirements
Windows: XP SP2 or later;
Mac OS X: Intel CPU & "Snow Leopard" 10.6 or later.
Note that Unity was not tested on server versions of Windows and OS X.
Graphics card with DirectX 9 level (shader model 2.0) capabilities. Any card made since
2004 should work.
Using Occlusion Culling requires GPU (Graphics Processing Unit) with Occlusion Query
support (some Intel GPUs do not support that).
Installation
Installing Unity 3D is simple.
• Download the latest Unity distribution from http://unity3d.com/unity/download/
• Run the installer with default settings.
• Run Unity for the first time. It may open the demo project, or it will ask you to create a
project. Open the demo or create a new project without changing any settings.
• Follow the instructions to register online, fill out your email address and just use the
free/indie license.
• Go to File > Open Project
• When your project will be loaded, it will open in unity. More on next slide
Installing ibjects.com
Screen Shot of Unity Main Interface with a Project Opened
2 – Hierarchy
Text list of game objects and sub-objects in the current scene
3 – Inspector
Properties for currently selected
4 – Game
Preview how game will look when executing
5 – Project
Contents of Project ‘assets’ folder (i.e. files in that folder)
– library of scripts, digital media files, and scenes
Unity Basics ibjects.com
This is the top most bar below Menu Bar in Unity Main Interface Window.
These three buttons help you test your game and control playback. As you've seen, the Play
button starts and stops your game. The Pause button works as expected—it pauses your
game so that you can make changes to it on the fly. The third button is a Step-Through
control; use it to advance frame-by-frame through your game so that you can more tightly
control what's going on.
Above the Inspector panel, you'll see the Layers and Layout dropdowns. Game Objects can
be grouped into layers, much like in Photoshop or Flash. Unity stores a few commonly used
layouts in the Layout dropdown. You can also save and load your own custom layouts.
Scripting ibjects.com
• Everything in a scene is either a Game Object or a component inside a Game Object
• Every Game Object has at least 1 COMPONENT
Its TRANSFORM – an object’s position, scale, rotation
Other components depend on object type (audio, mesh, material, script etc.)
• Game objects can be in a HIERARHCY – so an object can be a sub-object of another object
E.g. an “arm” object can be a sub-object of a “body” object etc.
Unity uses the term PREFAB for a pre-fabricated object template (i.e. a class combining 3D
objects and scripts)
At DESIGN TIME (in editor) a prefab can be dragged from Project window into the Scene
window and added the scene’s hierarchy of game objects. The object can then be edited
(i.e. customised from the prefab default settings) if desired
At RUN TIME a script can cause a new object instance to be created (instantiated) at a given
location / with a given transform set of properties
• Asset Store
Unity's Asset Store is home to a growing library of free and commercial assets created both by
Unity Technologies and also members of the community.
A wide variety of assets is available, covering everything from textures, models and
animations to whole project examples, tutorials and Editor extensions. The assets are accessed
from a simple interface built into the Unity Editor and are downloaded and imported directly
into your project.
You can open the Asset Store window by selecting Window->AssetStore from the
main menu. On your first visit, you will be prompted to create a free user account which you
will use to access the Store subsequently.
• Location of Downloaded Asset Files
You will rarely, if ever, need to access the files downloaded from the Asset Store directly.
However, if you do need to, you can find them in
~/Library/Unity/Asset Store ...on the Mac and in
C:\Users\accountName\AppData\Roaming\Unity\Asset Store ...on Windows. These folders
contain subfolders that correspond to particular Asset Store vendors - the actual asset files are
contained in the appropriate subfolder
Asset ibjects.com
From the menu bar select File -> Build Settings
www.ibjects.com