INTRO TO UNITY Building your first 3D game. DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies.

Slides:



Advertisements
Similar presentations
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Advertisements

SE 313 – Computer Graphics Lecture 13: Lighting and Materials Practice Lecturer: Gazihan Alankuş 1.
GameCamp! and Game Davis Creating a 2D Platformer in Unity.
GameCamp! and Game Davis Introduction to Scripting in Unity®
HELLO WORLD: YOUR FIRST PROGRAM CHAPTER Topics  Hello World?  Creating a Unity Project –The Unity Project Folder  MonoDevelop: Unity's Code Editor.
A wonderful informal assessment tool! Created by Joell Wilkins using the Apple app, so please note Android apps might be different. This powerpoint may.
Based on Roll-a-ball video tutorial from Unity Technologies Part WakeUpAndCode.com.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Unity 3D game IDE 1.  Unity is a multi-platform, integrated IDE for scripting games, and working with 3D virtual worlds  Including:  Game engine ▪
New Features of Boardmaker Version 6
SE 320 – Introduction to Game Development Lecture 11: Animations and GoKit Lecturer: Gazihan Alankuş Please look at the last slides for assignments (marked.
SE 313 – Computer Graphics Lecture 11: Projection Painting and Merging Textures Lecturer: Gazihan Alankuş 1.
Adding Websites to a Folder  Putting sites into an already existing folder Putting sites into an already existing folder  Adding an image on the icon.
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
Transferring Course Materials to the Web. Creating a Web Site With a Template To create a Web site with a template 1.Start FrontPage. 2.On the File menu,
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
UFCEKU-20-3Web Games Programming Unity 3D Basic Concepts Using and Creating Prefabs.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
3–D Helium Molecule Tutorial Alice Project Duke University Professor Susan H. Rodger Gaetjens Lezin June 2008.
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
Web Games Programming An Introduction to Unity 3D.
Virtual Book Tools How to insert a Text Box Click on Insert Go to Text Box Click on slide to insert OR Click on Drawing Toolbar picture of Text Box Click.
UFCFS D Technologies for the Web Unity 3D: Review of Topics and Related Concepts.
Unity 5 Visual Studio Code * Asset Store * FPS * Terrain.
1. Press the New Layer Button 3. Double click names to re-name Ball & Shadow layers 2. Click to change to 12 fps Step 1.
Website Editing From Gingerweb The Image Gallery.
Learning Unity. Getting Unity
SE 320 – Introduction to Game Development Lecture 3: Unity’s Interface and Concepts Lecturer: Gazihan Alankuş Please look at the last two slides for assignments.
This is what we want to draw Extrude Mirror Round Edges.
UFCFS D Technologies for the Web Unity Interface Features.
Yingcai Xiao Game Development with Unity3D. Outline IDE Engine Assets Tutorial Examples Inside.
UFCEK-20-3Web Games Programming Unity 3D: Review of Topics Publishing for the Web.
Recording Your Script 1)Find a quiet place to record. 2)Open up your phone’s recording app. 3)When recording, remember: Speak very clearly Enunciate Do.
Build-It-Yourself.com BLENDER 3D LESSON 3 BLENDER 3D LESSON 3.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
This is the finished body RADIUS LOFT EXTRUDE. Creating the body taper Open the wing Click on new part in context.
Photoshop Actions Lights, Camera, Actions in Photoshop.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Motion Graphics & Animation.
If you don’t have Google Earth downloaded already, you can go to to get it.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
This is what we want to produce Import sketch dimensions Label angles Set the scale Add linear dimensions.
Recording Your Script and Creating Your Podcast !!You are not finished until you have completed all steps on all of the slides up to and including Slide.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Angry Teapots– using the physics engine in Unity Peter Passmore.
Game Development with Unity3D
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
INTRO to PIXLR.com.
with a few tips and tools for managing mail
Game Development with Unity3D Inside/Outside Unity3D
See also our Class Wiki at ws445.wetpaint.com
Unity 2D: Step by Step, Part 4
EEC-693/793 Applied Computer Vision with Depth Cameras
Introducing Blender.
Tips and tools for managing the new interface
Assignment 8 Chess Game.
EEC-693/793 Applied Computer Vision with Depth Cameras
Animation Workshop Week 2
lecture 8 Our First Project
Fusion 360 Concrete Tea light Holder Tutorial
Assignment 1 Creating a Heart.
Using the QGIS Layout Manager to create
EEC-693/793 Applied Computer Vision with Depth Cameras
Recording Your Script and Creating Your Podcast
Unity Game Development
Unity Game Development
Unity Game Development
Assignment 1 Creating a Heart.
Presentation transcript:

INTRO TO UNITY Building your first 3D game

DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies or any of its affiliates. This is an independent, unofficial site. UNITY, UNITY3D and the Unity box logo are trademarks of Unity Technologies ApS.”

WHAT UNITY IS 2D / 3D Rendering Engine Development Environment Physics Game Engine

MOBILE MARKET

USES  Games  Mobile  PC  Console (Xbox/PS/Wii)  Web  Business Apps  Cross Platform  Nice visual effects  Visualization (medical, architectural, etc.)  Augmented Reality (Hololens)  Virtual Reality

NEW PROJECT  Open Unity  Create a new Project  Named “3D Intro”

PLANE & CUBE Add a Plane GameObject->Create New->Plane Add a Cube GameObject->Create New->Box Will be hard to see

MOVE CUBE Set Cubes Y position to 0.5

SAVE SCENE Create a Scenes Folder Right click->Create Folder Save Scene File->Save Scene As Named “1. Box on Plane”

MATERIALS FOLDER & MATERIAL Create a Materials Folder Right Click Create->Material Name it “Blue”

CHANGE MATERIAL COLOR & ASSIGN Set the Material Color to a Blue of your choice Drag the Material from the Project View to the Cube in the Scene View

SET THE PLANE TO NAVIGATION STATIC Select the Plane Click the Static Dropdown and select Navigation Static

BAKE A NAVMESH Select Window -> Navigation Set Agent Radius to 0.05 At the BOTTOM of the navigation tab, click Bake

SAVE SCENE Save the Scene Name it “2. Blue Box with NavMesh”

RENAME CUBE Select the “Cube” in the Hierarchy Rename it to “BlueBox” in the Inspector

ADD NAVMESHAGENT With the BlueBox selected, click “Add Component” Type navmesh to filter Select the “Nav Mesh Agent”

IMPORT THE BOXCODE.UNITYPACKAGE Double click the BoxCode.UnityPackage file to import it

ASSIGN THE BOXNAVIGATOR SCRIPT Select the BlueBox Add Component -> BoxNavigator

PLAY AND TEST Click Play Click the Plane Watch the Box move

CODE INVESTIGATION Let’s go over the BoxNavigator

MOVE THE SCENE VIEW Hold Right Mouse Use WASD to move around Adjust to be looking at the box from above

ALIGN THE CAMERA Select the Main Camera GameObject->Align With View Or use the HotKey

NEW CAMERA VIEW / TOP DOWN Game View should look like this

MOVE THE BOX Adjust the X or Z position of your BlueBox so that it’s to the Right side of the screen

SAVE THE SCENE File->Save Scene As Name it “3. Camera view and Navigation”

CREATE ANOTHER CUBE GameObject ->3D Object -> Cube Adjust the Y & Z positions Or X position if Z is wrong

CREATE RED MATERIAL Open Materials Folder in Project View Right Click Create->Material Name it “Red”

SELECT A TINT OF RED Select the “Red” material In the Inspector, choose a tint of Red

ASSIGN THE RED MATERIAL Select the new Cube In the Inspector, expand the Materials section Click the Circle (in yellow)

USE THE MATERIAL SELECTOR Use the Selector to choose the “Red” material from our Assets

GAME VIEW Your Game View should look like this

ADD REDBOX SCRIPT TO THE CUBE Select the Cube Add Component Search for RedBox

RENAME CUBE TO REDBOX Rename the Cube by hitting F2 or using the Inspector

CREATE PREFABS FOLDER Create->Folder Name it “Prefabs”

CREATE A PREFAB Drag the Redbox from the Hierarchy to the Prefabs folder Drag Bluebox from the Hierarchy to the Prefabs folder They should both turn BLUE in the Hierarchy

CREATE AMMO GameObject->3D Object- >Sphere

RENAME IT TO AMMO Rename the Sphere to “Ammo”

ADD RIGIDBODY TO AMMO Add Component Search for RigidBody DO NOT ADD THE 2D VERSION

CHANGE AMMO POSITION AND SCALE Set the Ammo Scale t0 0.5 for X, Y, & Z Set the Position to 0.0 for X, Y, & Z

CREATE THE AMMO PREFAB Drag the Ammo from Hierarchy to the Prefabs folder

ASSIGN THE AMMO TO THE REDBOX SCRIPT Select the RedBox Drag the Ammo from Prefabs to the RedBox DO NOT SINGLE CLICK AMMO MUST HOLD MOUSE BUTTON DOWN

ASSIGN BOXSPLITTER TO BLUEBOX Add Component Find BoxSplitter Add it

LAYERS Click on Layers Hit Add Layer

ADD 3 NEW LAYERS Create the Layers “Red” “RedWeapon” “Ground”

OPEN PHYSICS SETTINGS Edit -> Project Settings -> Physics

UNCHECK REDWEAPON INTERACTIONS Uncheck RedWeapons interaction with “Red” and other “RedWeapons”

SAVE PROJECT This will save your physics and layers

SET REDBOX TO RED LAYER Set the Layer to Red using the Dropdown

SET AMMO LAYER TO REDWEAPON Select RedWeapon in the Layer Dropdown

APPLY AMMO CHANGES Click Apply to propagate the changes to the Ammo Prefab If not available, you already selected the prefab and don’t need to do anything

SAVE SCENE! Save Again…

PLAY Hit play and check it out

CODE TIME Let’s look at the RedBox code

ADJUST FIRESPEED Select the RedBox Adjust FireSpeed to 100

PLAY See how fast it shoots

DISABLE REDBOX SCRIPT Uncheck the Box by the name to disable the component Now it won’t shoot!

ADD RIGIDBODY TO BLUEBOX & SET MASS Add a RigidBody to the BlueBox Set the Mass to 100

PLAY Push the Red Box Off!

DUPLICATE BLUEBOX PREFAB Right Click and Select Duplicate on BlueBox

RENAME BLUEBOX DUPLICATE Rename the Duplicate to “BlueBox Split Once” Set Scale to 0.5 for X, Y, & Z

ASSIGN THE SPLIT ONCE BOX Select “BlueBox” Assign the BlueBox Split Once to the Split Into Prefab section Click & Drag DO NOT SINGLE CLICK

ENABLE REDBOX SCRIPT Select the RedBox Enable the Script we previously disabled

PLAY Watch the Split Try to push off the Red Cube

CREATE A YELLOW MATERIAL Create a new Material Named “Yellow” Pick a shade of yellow

CREATE A NEW CUBE SET POSITION & SCALE Create a new Cube GameObject -> 3D -> Cube Set the position to 0, 0, 0 Set the Scale X value to 4

RENAME TO OBSTACLE AND SET NAVIGATION STATIC Rename the Cube Select Navigation Static

ADD A NAV MESH OBSTACLE Select your new Cube and Add a Nav Mesh Obstacle

BAKE NAV MESH Window -> Nav Mesh Bake Tab Click Bake

PLAY Can’t go through the cube..

MEETUP.UNITY3D.COLLEGE Asset Store Giveaway!