Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The Basics of Unity - The Game Engine


Published on

Unity is a cross-platform game engine developed by Unity Technologies. 

Published in: Technology
  • Be the first to comment

The Basics of Unity - The Game Engine

  1. 1.  Introduction  What Is Unity  Installing  Unity Basics  Graphics  Physics  Scripting  Multiplayer And Networking  Audio And Animation  Navigation  Assets  Platform  Build
  2. 2.  Unity is a cross-platform game engine developed by Unity Technologies.  Used to develop video games for PC, consoles, mobile devices and websites.  First announced only for OS X, at Apple's Worldwide Developers Conference in 2005, it has since been extended to target 21 platforms .  Nintendo provides free licenses of Unity 5 to all licensed Nintendo Developers along with their software development kits (SDKs) for the Wii U and Nintendo 3DS Family.
  3. 3.  Game engine  3D objects / lighting / physics / animation / scripting  Accompanying script editor  MonoDevelop (win/mac) << RECOMMENDED TO USE  Can also use Visual Studio (Windows)  3D terrain editor  3D object animation manager  GUI system  Executable exporter many platforms: Native application / web player / iPhone / Android / Wii
  4. 4. 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 capabilities. Any card made since 2004 should work.  Using Occlusion Culling requires GPU (Graphics Processing Unit) with Occlusion Query support. Installation 1. Download the latest Unity distribution from 2. Run the installer with default settings. 3. 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. 4. Follow the instructions to register online, fill out your email address and just use the free/indie license. 5. Go to File > Open Project 6. When your project will be loaded, it will open in unity. More on next slide
  5. 5.  Unity is equally suited to creating both 2D and 3D games. When you create a new project in Unity, you have the choice to start in 2D or 3D mode.  The choice between starting in 2D or 3D mode determines some settings for the Unity Editor, such as whether images are imported as textures or sprites.  Full 3D  Orthographic 3D  Full 2D  2D gameplay with 3D graphics  2D gameplay and graphics, with a perspective camera
  6. 6. 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. Unity offers amazing visual fidelity,  Lighting  Cameras  Materials  Shaders &Textures  Particles & Visual Effects  much more.
  7. 7.  To have convincing physical behavior,  An object in a game must accelerate correctly and be affected by collisions, gravity and other forces.  Unity’s built-in physics engines provide components that handle the physical simulation for you. With just a few parameter settings.  you can create objects that behave passively in a realistic way. By controlling the physics from scripts, you can give an object the dynamics of a vehicle, a machine, or even a piece of fabric. For example, there is Rigid body component for 3D physics and an analogous Rigid body 2D for 2D physics.
  8. 8.  Unity implements a MONO compiler  Scripts can be written in  JavaScript  C#  In Unity, select from the menu Assets->Sync Visual Studio Project  Find the newly created .  Open that file with Visual Studio Express.  In Unity, go to Edit->Preferences, and make sure that Visual Studio is selected as your preferred external editor.  Double click a C# file in your project. Visual Studio should automatically open that file for you.  You can edit the file, save, and switch back to Unity.  You can now edit all your script files, and switch back to Unity to use them.
  9. 9.  Multiplayer Networking is inherently detailed and complex.  There are particular issues and difficulties associated with synchronizing and communicating between multiple instances of a project which are often running on different machines that could be in different and distant parts of the world.  Unity’s built-in Multiplayer Networking and the associated High Level API (HLAPI), we hope to make creating Multiplayer projects easier to use.
  10. 10.  Unity’s Audio features include full 3D spatial sound, real-time mixing and mastering, hierarchies of mixers, snapshots, predefined effects and much more.  A game would be incomplete without some kind of audio, be it background music or sound effects. Unity’s audio system is flexible and powerful  Unity’s Animation features include retargetable animations, full control of animation weights at runtime, event calling from within the animation playback, sophisticated state machine hierarchies and transitions, blend shapes for facial animations, and much more.  Unity’s animation system is based on the concept of Animation Clips, which contain information about how certain objects should change their position, rotation, or other properties over time.
  11. 11. The navigation system allows you to create characters that can intelligently move around the game world, using navigation meshes that are created automatically from your Scene geometry.  NavMesh is a data structure which describes the walkable surfaces of the game world and allows to find path from one walkable location to another in the game world.  NavMesh Agent component help you to create characters which avoid each other while moving towards their goal. Agents reason about the game world using the NavMesh and they know how to avoid each other as well as moving obstacles.  Off-Mesh Link component allows you to incorporate navigation shortcuts which cannot be represented using a walkable surface.  NavMesh Obstacle component allows you to describe moving obstacles the agents should avoid while navigating the world. A barrel or a crate controlled by the physics system is a good example of an obstacle.
  12. 12. ibjects.comAsset Unity will automatically detect files as they are added to your Project folder's Assets folder. When you put any asset into your Assets folder, you will see the asset appear in your Project View. 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.
  13. 13. The extension of a unity file is .unity. You can make games on unity for different platforms that include Android and iOS.  This screen shot is showing the platforms on which you can export your .unity file.  So now you see the unity is a huge tool if you are interested in game development.  However, in these slides we will only cover Unity for PC games.  Unity is a freeware software. Bur it is now freeware if you want to use it for commercial purpose. Introduction
  14. 14. ibjects.comBuild From the menu bar select File -> Build Settings  Select Scenes to Build.  Select Platform  Click Build And Run
  15. 15. ibjects.comBuild
  16. 16. Headquarters OrisysIndia Consultancy Services KSUM, Thejaswini Building, Technopark, Trivandrum, Kerala 695 581, India. +91 8086 800 204 Corporate Office OrisysIndia Consultancy Services MLR 44, Mangalam Lane, Sasthamangalam, Trivandrum, Kerala 695 010, India. +91 8086 800 203 Contact Us