SlideShare ist ein Scribd-Unternehmen logo
1 von 46
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

Weitere ähnliche Inhalte

Was ist angesagt?

PRESENTATION ON Game Engine
PRESENTATION ON Game EnginePRESENTATION ON Game Engine
PRESENTATION ON Game Engine
Diksha Bhargava
 

Was ist angesagt? (20)

Introduction-to-Unity.ppt
Introduction-to-Unity.pptIntroduction-to-Unity.ppt
Introduction-to-Unity.ppt
 
PRESENTATION ON Game Engine
PRESENTATION ON Game EnginePRESENTATION ON Game Engine
PRESENTATION ON Game Engine
 
Unity Introduction
Unity IntroductionUnity Introduction
Unity Introduction
 
An Introduction To Game development
An Introduction To Game developmentAn Introduction To Game development
An Introduction To Game development
 
Unity Game Engine - Basics
Unity Game Engine - BasicsUnity Game Engine - Basics
Unity Game Engine - Basics
 
unity basics
unity basicsunity basics
unity basics
 
3-Game Graphics (Game Design and Development)
3-Game Graphics (Game Design and Development)3-Game Graphics (Game Design and Development)
3-Game Graphics (Game Design and Development)
 
Unity
UnityUnity
Unity
 
Phases of game development
Phases of game developmentPhases of game development
Phases of game development
 
Game Development workshop with Unity3D.
Game Development workshop with Unity3D.Game Development workshop with Unity3D.
Game Development workshop with Unity3D.
 
Game Design Principle
Game Design PrincipleGame Design Principle
Game Design Principle
 
06. Game Architecture
06. Game Architecture06. Game Architecture
06. Game Architecture
 
Introduction to Unity3D Game Engine
Introduction to Unity3D Game EngineIntroduction to Unity3D Game Engine
Introduction to Unity3D Game Engine
 
Game Design Process
Game Design ProcessGame Design Process
Game Design Process
 
Introduction to game development
Introduction to game developmentIntroduction to game development
Introduction to game development
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
 
2-Game Design (Game Design and Development)
2-Game Design (Game Design and Development)2-Game Design (Game Design and Development)
2-Game Design (Game Design and Development)
 
Game Design fundamentals
Game Design fundamentalsGame Design fundamentals
Game Design fundamentals
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 
Introduction to game development
Introduction to game developmentIntroduction to game development
Introduction to game development
 

Ähnlich wie Introduction to Unity

Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.js
Verold
 
Introduction to-unity
Introduction to-unityIntroduction to-unity
Introduction to-unity
vafa3
 

Ähnlich wie Introduction to Unity (20)

Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with Unity
 
Cross platform game development
Cross platform game developmentCross platform game development
Cross platform game development
 
Mobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3D
 
Cardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesCardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR Experiences
 
Building VR Applications For Google Cardboard
Building VR Applications For Google CardboardBuilding VR Applications For Google Cardboard
Building VR Applications For Google Cardboard
 
Unity workshop
Unity workshopUnity workshop
Unity workshop
 
Developing AR and VR Experiences with Unity
Developing AR and VR Experiences with UnityDeveloping AR and VR Experiences with Unity
Developing AR and VR Experiences with Unity
 
Tools for developing Android Games
 Tools for developing Android Games Tools for developing Android Games
Tools for developing Android Games
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.js
 
Let's make a game unity
Let's make a game   unityLet's make a game   unity
Let's make a game unity
 
Mobile AR Tutorial
Mobile AR TutorialMobile AR Tutorial
Mobile AR Tutorial
 
STEM Camp Virtual Reality
STEM Camp Virtual RealitySTEM Camp Virtual Reality
STEM Camp Virtual Reality
 
VR Workshop #1
VR Workshop #1VR Workshop #1
VR Workshop #1
 
Introduction to Unity and Vuforia for Augmented reality and image tracking
Introduction to Unity and Vuforia for Augmented reality and image trackingIntroduction to Unity and Vuforia for Augmented reality and image tracking
Introduction to Unity and Vuforia for Augmented reality and image tracking
 
Augmenting reality: Bring digital objects into the real world
Augmenting reality: Bring digital objects into the real worldAugmenting reality: Bring digital objects into the real world
Augmenting reality: Bring digital objects into the real world
 
Introduction to-unity
Introduction to-unityIntroduction to-unity
Introduction to-unity
 
Introduction-to-Unity.ppt
Introduction-to-Unity.pptIntroduction-to-Unity.ppt
Introduction-to-Unity.ppt
 
Lecture2_practice.pdf
Lecture2_practice.pdfLecture2_practice.pdf
Lecture2_practice.pdf
 
Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01
 
3D Programming Basics: WebGL
3D Programming Basics: WebGL3D Programming Basics: WebGL
3D Programming Basics: WebGL
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Kürzlich hochgeladen (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Introduction to Unity