SlideShare a Scribd company logo
DES241
2020
Introduction to Unity (06/08/2020)
Mixed Reality
Remote Collaboration dSystem
Prasanth Sasikumar
Intro To Unity
Prasanth Sasikumar
Empathic Computing Lab
4
Games!
5
6
Unity editor
7
Unity Reel
https://youtu.be/QCqTn3SbfA0
8
Adam - Real Time Movie
https://www.youtube.com/watch?v=INbwoxfSBjQ
9
AR VR Games
https://www.youtube.com/watch?v=zNMlglRyRSo
Unity 3D features
● Cross platform
○ Windows, OSX, iOS, Android, Linux, WebGL, etc.
● Fast rapid development
○ Visual scene assembly, rapid prototyping
● Control over rendering pipeline
○ Access to low level graphics, shader programming
● Scripting in multiple coding languages
○ C#, C++, Javascript, etc.
● Asset store with thousands of contributions
○ Models, behaviours, programming tools, etc.
● Very large developer/support community 10
Unity 3D features
11
Download Unity
Download Unity - https://store.unity.com/
Pick version of Unity
12
Unity Business
13
Unity Basics
14
Unity Hub
● Install Unity Hub
○ Download Unity Hub – pick components you want
○ https://unity3d.com/get-unity/download
15
Getting Started
● First time running Unity you’ll be asked to create a
project
● Pick 3D, specify project name and location
Getting Started
16
Unity Interface
17
Customizable Interface
18
Unity Interface
Scene View
● Where the game is constructed
● Visually place all the assets
○ models, cameras, other pieces that
make up the game
19
Unity Interface
Hierarchy Window
● List of all current GameObjects being
used in the application
● GameObjects can be nested
● Can have multiple scenes
20
Unity Interface
Project Window
● Contains at the assets needed for
application
● Drag assets into the hierarchy
window
21
Unity Interface
Inspector View
● Configure any GameObject
• Change properties
• Add components
Building Scenes
● Use GameObjects:
○ Containers that hold different components, Eg 3D model, texture, animation
● Use Inspector
○ View and edit object properties and other settings
● Use Scene View
○ Position objects, camera, lights, other GameObjects etc
● Scripting
○ Adding interaction, user input, events, etc
22
Unity 3D features
23
Getting Started
● Every object in Scene is a GameObject
● GameObjects contain Components
• e.g. Transform Component, Camera Component
GameObjects
24
Getting Started
Adding 3D Content
● Create 3D asset using modeling package, or download
○ Fbx, Obj file format for 3D models
● Add file to Assets folder in Project
● Or drag the file into Project View
● Drag mesh from Project View into Hierarchy or Scene View
○ Creates a game object
25
Getting Started
Positioning/Scaling Objects
● Click on object and choose transform
26
Getting Started
Manipulating Objects and Camera
● Panning and scaling
27
Getting Started
Unity Coordinate Frame
● Left handed coordinate system.
● Select axes to translate object
28
Getting Started
Rotation About Axes
● Use rotation tool, select rotation line
29
Unity Asset Store
● Download thousands of models, scripts, animations, etc
● https://assetstore.unity.com/
30
Unity Asset Store
31
Unity Simple Scene
Making a Simple Scene
1. Create New Project
2. Create Game Object
3. Moving main camera position
4. Adding lights
5. Adding more objects
6. Adding physics
7. Changing object materials
8. Adding script behaviour
32
Making a Simple Scene
33
Making a Simple Scene
● Create new folder and project
Create Project
34
Making a Simple Scene
● Load a Sphere into the scene
● GameObject -> 3D Object -> Sphere
Create GameObject
35
Making a Simple Scene
● Select Main Camera
● Select translate icon
● Move camera
Moving main camera
36
Making a Simple Scene
● GameObject -> Light -> Directional Light
● Use inspector to modify light properties (colour, intensity)
Add Light
37
Making a Simple Scene
● Select Sphere
● Add Rigidbody component
● Add Component -> Physics -> RigidBody or Component -
> Physics -> RigidBody
● Modify inspector properties (mass, drag, etc)
Add Physics
38
Making a Simple Scene
● Add several cubes
● GameObject -> 3D Object – Cube
● Move cube
● Add Rigid Body component (uncheck gravity)
Add More Objects
39
Making a Simple Scene
● Assets -> Create -> Material
● Click Albedo colour box in inspector
● Select colour
● Drag asset onto object to apply
Add Material
40
Making a Simple Scene
● Assets -> Create -> C# script
● Edit script using Mono/Visual Studio
● Drag script onto Game Object
Add Script
41
Making a Simple Scene
● GameObject Rotation
Example C# Script
using UnityEngine;
using System.Collections;
public class NewBehaviourScript: MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
this.gameObject.transform.Rotate(Vector3.up*10);
}
}
Scripting C# Unity 3D
● void Awake():
○ Is called when the first scene is loaded and the gameobject is active
● void Start():
○ Called on first frame update
● void FixedUpdate():
○ Called before physics calculations are made
● void Update():
○ Called every frame before rendering
● void LateUpdate():
○ Once per frame after update finished
42
Unity 3D features
43
Making a Simple Scene
● Placement
44
Making a Simple Scene
● Final Spinning Cube Scene
Resources
● Unity Main site
○ https://unity.com/
● Vuforia
○ https://library.vuforia.com/getting-started/overview.html
● Official Unity Tutorials
○ https://learn.unity.com/
● Unity Coder Blog
○ http://unitycoder.com
45
Unity 3D Resources
DES241
2020
Prasanth Sasikumar
psas598@aucklanduni.ac.nz

More Related Content

What's hot (20)

PPTX
Unity 3D, A game engine
Md. Irteza rahman Masud
 
PPTX
Unity 3d Basics
Chaudhry Talha Waseem
 
PPTX
unity basics
Reham Maher El-Safarini
 
PPTX
Unity Game Engine - Basics
FirosK2
 
PDF
Unity Introduction
Juwal Bose
 
PDF
The Basics of Unity - The Game Engine
OrisysIndia
 
PPTX
Unity - Game Engine
Geeks Anonymes
 
PPTX
Unity 3D
gema123
 
PPTX
Game dev process
Yassine Arif
 
PDF
Developing AR and VR Experiences with Unity
Mark Billinghurst
 
PPTX
Unity3D Programming
Michael Ivanov
 
PDF
Introduction to Game Development
Reggie Niccolo Santos
 
PPTX
Introduction to game development
Abdelrahman Ahmed
 
PPTX
Introduction to Game Development and the Game Industry
Nataly Eliyahu
 
PPTX
Introduction to Game Development
Sumit Jain
 
PPTX
Game Development with Unity
davidluzgouveia
 
PDF
Introduction to Game Development
iTawy Community
 
PPTX
Introduction to Android ppt
Taha Malampatti
 
PPTX
Introduction to Game Development
Shaan Alam
 
PDF
Unity 2D game development
The NineHertz
 
Unity 3D, A game engine
Md. Irteza rahman Masud
 
Unity 3d Basics
Chaudhry Talha Waseem
 
Unity Game Engine - Basics
FirosK2
 
Unity Introduction
Juwal Bose
 
The Basics of Unity - The Game Engine
OrisysIndia
 
Unity - Game Engine
Geeks Anonymes
 
Unity 3D
gema123
 
Game dev process
Yassine Arif
 
Developing AR and VR Experiences with Unity
Mark Billinghurst
 
Unity3D Programming
Michael Ivanov
 
Introduction to Game Development
Reggie Niccolo Santos
 
Introduction to game development
Abdelrahman Ahmed
 
Introduction to Game Development and the Game Industry
Nataly Eliyahu
 
Introduction to Game Development
Sumit Jain
 
Game Development with Unity
davidluzgouveia
 
Introduction to Game Development
iTawy Community
 
Introduction to Android ppt
Taha Malampatti
 
Introduction to Game Development
Shaan Alam
 
Unity 2D game development
The NineHertz
 

Similar to Introduction to Unity (20)

PDF
Mobile AR Lecture6 - Introduction to Unity 3D
Mark Billinghurst
 
PDF
Introduction to Unity by Purdue university
asdf936939
 
PDF
Presentación Unity
Laura Milena Parra Navarro
 
PDF
Developing VR Experiences with Unity
Mark Billinghurst
 
PPTX
Unity - Building your first real-time 3D project
NexusEdgesupport
 
PDF
An Introduction to the Unity GamingEngine
Stevexm1
 
PPTX
unity gaming programing basics for students ppt
KathiriyaParthiv
 
PPTX
Creating great Unity games for Windows 10 - Part 1
Jiri Danihelka
 
PPTX
Workingwithunity 110519054824-phpapp01
Srijib Roy
 
PPTX
Cmd unity withc
umairnoora
 
PDF
Unity introduction for programmers
Noam Gat
 
PPTX
Game Development with Unity3D (Game Development lecture 3)
abdulrafaychaudhry
 
DOCX
3d game engine
luisfvazquez1
 
PPTX
Unity - Building Your First Real-Time 3D Project - All Slides
NexusEdgesupport
 
PPTX
Unity 3D game engine seminar
NikhilThorat15
 
PDF
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
noorcon
 
PPTX
Cross platform game development
Jerel Hass
 
PDF
Cardboard VR: Building Low Cost VR Experiences
Mark Billinghurst
 
PPTX
Game development -session on unity 3d
Muhammad Maaz Irfan
 
PPTX
November.2015.RealityBasedUI
Reuben Ahmed
 
Mobile AR Lecture6 - Introduction to Unity 3D
Mark Billinghurst
 
Introduction to Unity by Purdue university
asdf936939
 
Presentación Unity
Laura Milena Parra Navarro
 
Developing VR Experiences with Unity
Mark Billinghurst
 
Unity - Building your first real-time 3D project
NexusEdgesupport
 
An Introduction to the Unity GamingEngine
Stevexm1
 
unity gaming programing basics for students ppt
KathiriyaParthiv
 
Creating great Unity games for Windows 10 - Part 1
Jiri Danihelka
 
Workingwithunity 110519054824-phpapp01
Srijib Roy
 
Cmd unity withc
umairnoora
 
Unity introduction for programmers
Noam Gat
 
Game Development with Unity3D (Game Development lecture 3)
abdulrafaychaudhry
 
3d game engine
luisfvazquez1
 
Unity - Building Your First Real-Time 3D Project - All Slides
NexusEdgesupport
 
Unity 3D game engine seminar
NikhilThorat15
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
noorcon
 
Cross platform game development
Jerel Hass
 
Cardboard VR: Building Low Cost VR Experiences
Mark Billinghurst
 
Game development -session on unity 3d
Muhammad Maaz Irfan
 
November.2015.RealityBasedUI
Reuben Ahmed
 
Ad

Recently uploaded (20)

PDF
Genomics Proteomics and Vaccines 1st Edition Guido Grandi (Editor)
kboqcyuw976
 
PPTX
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
PDF
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
PDF
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
PPTX
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
PDF
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
PPTX
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
PDF
I3PM Case study smart parking 2025 with uptoIP® and ABP
MIPLM
 
PDF
AI-assisted IP-Design lecture from the MIPLM 2025
MIPLM
 
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
PPTX
Life and Career Skills Lesson 2.pptxProtective and Risk Factors of Late Adole...
ryangabrielcatalon40
 
PPTX
PLANNING A HOSPITAL AND NURSING UNIT.pptx
PRADEEP ABOTHU
 
PDF
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
PDF
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
Genomics Proteomics and Vaccines 1st Edition Guido Grandi (Editor)
kboqcyuw976
 
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
Cooperative wireless communications 1st Edition Yan Zhang
jsphyftmkb123
 
Quiz Night Live May 2025 - Intra Pragya Online General Quiz
Pragya - UEM Kolkata Quiz Club
 
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
I3PM Case study smart parking 2025 with uptoIP® and ABP
MIPLM
 
AI-assisted IP-Design lecture from the MIPLM 2025
MIPLM
 
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
Life and Career Skills Lesson 2.pptxProtective and Risk Factors of Late Adole...
ryangabrielcatalon40
 
PLANNING A HOSPITAL AND NURSING UNIT.pptx
PRADEEP ABOTHU
 
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
Ad

Introduction to Unity