Learning Unity. Getting Unity

Slides:



Advertisements
Similar presentations
Mike Scott University of Texas at Austin
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Microsoft® Small Basic
SE 313 – Computer Graphics Lecture 13: Lighting and Materials Practice Lecturer: Gazihan Alankuş 1.
Resource Fix-Its. This is what the drag and drop interface should look like Drag and Drop Menu.
GameCamp! and Game Davis Creating a 2D Platformer in Unity.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Rodger Duke University, July 2008.
Wizard Game: Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July
Power Point Presentation - Advanced Julia J. Stahl Distributed System Specialist.
SE 313 – Computer Graphics Lecture 11: Projection Painting and Merging Textures Lecturer: Gazihan Alankuş 1.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
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.
Chapter 3 Working with Symbols and Interactivity.
CSE 380 – Computer Game Programming Introduction ITS 102 – 3D Modeling for Games Blender's User Interface.
IE 411/511: Visual Programming for Industrial Applications
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
RPMS - EHR v1.1 Techie Class Really Powerful at Measuring Stuff.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Macromedia Dreamweaver 4.0 INTERFACE This presentation will run automatically.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.
Web Games Programming An Introduction to Unity 3D.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
Scene changes By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June
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.
Lists Tutorial By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
What is Action Script 1.It is a programming language used in Flash 2.It is a language derived from JavaScript 3.It is an interactive language to control.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Build-It-Yourself.com BLENDER 3D LESSON 3 BLENDER 3D LESSON 3.
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY.
Prezi Basics Mrs. C’s class. How to get started on a prezi  For a step-by-step tutorial on how to use basic tools in Prezi, we will watch the video above.
Adobe InDesign Tri Fold Brochure. Create a Tri Fold Document InDesign > File > New Document The gutter is the space placed between columns to add breath.
Adding a wave file to a slide Adding a wave file to a slide (1 of 7) 1. Click on Insert. 2. Click Movies and Sounds. 3. Click Sound from file
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
Presenter: Carol Liss Timberlane Regional Middle School 6 th and 7 th grade Tech. Educator Co presenters:
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
Cosc 5/4735 Unity 3D Getting Started Guide for Android.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Microsoft PowerPoint Prepared by the Academic Faculty Members of IT.
INTRO TO UNITY Building your first 3D game. DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Making Billboards By Deborah Nelson Duke University, Under the direction of Professor Susan Rodger, July 14, 2008.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Angry Teapots– using the physics engine in Unity Peter Passmore.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Game Development with Unity3D
Dive Into® Visual Basic 2010 Express
Creating a UFO Rescue Game in Alice
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
Game Development with Unity3D Inside/Outside Unity3D
More (C#) Scripting Day 2, Lesson 1.
Chapter 1: An Introduction to Visual Basic 2015
EEC-693/793 Applied Computer Vision with Depth Cameras
Creating a UFO Rescue Game in Alice
EEC-693/793 Applied Computer Vision with Depth Cameras
Making Objects Move in Unison: Using Lists
Working with Symbols and Interactivity
Introduction to PowerPoint
EEC-693/793 Applied Computer Vision with Depth Cameras
Making Objects Move in Unison: Using Lists
Presentation transcript:

Learning Unity

Getting Unity

Parts of the Unity Workspace Scene – Place objects Objects – View and select objects Pre-Built – Code and object template Variables – Modify existing objects

Object Oriented Programming Each object represents a thing or a collection of ideas Ex “Car” – Functions: (things to do) accelerator, turn, stop – Variables: (Features) color, speed, location – Skin: (Visual appearance) polygons in space Relevant in Unity

Adding an Object Here we add a cube Properties – Location – Rotation – Scale Change properties – Type in text – Use graphical interface

The Camera or Viewpoint Need to see scene from a given perspective Can have multiple perspectives – Viewport not what user sees – See camera preview

Running the program Click on the “play” arrow Click again to stop See from the viewpoint of the camera Everything is dark, need some lights – Add directional light

Adding Code To make it do anything, need to add code Select pre-built code – Rigidbody – This provides physics – Now object drops Note: drag the “game” tab to view scene and game view at the same time

Collision Add in a floor – New Cube object – Resize and move Now when you run – Cube drops to floor

Our Own Code Create a Javascript asset – Can program in multiple languages in Unity Name Script Double click to edit

Our Own Code - 2 Code editor Code starts with some basic things Ignore “#pragma strict” function Start() {} – Runs when you hit the start button function Update() {} – Runs every time things change Automatic tick (moves objects, updates physics, updates graphics, calls Update functions etc)

Our Own Code - Follow Variable – var toFollow : Transform; – A variable is a space to hold a value that might change Update – this.transform.position = toFollow.position; – Move this object to the follow object

Adding Our Code We want the camera to follow the cube Simple click and drag code to the camera But what about the variable? We need to tell it what to follow So drag the cube to the ToFollow variable

Adding Our Code - 2 Now when you run, the camera moves with the falling cube – Unfortunately you can’t see the cube because you are inside of it! – To fix, we could change the position code (to move it away) But instead we will learn about nesting

Nesting Right click on the script and select remove script Now drag the Main Camera onto the cube in the far left bottom window – This means that the camera will move relative to the box – In this way, you can embed multiple layers

Adding Assets You can import assets which are collections of code and objects created by other people Import the character controller and confirm the import The assets will appear in the bottom center window Note – I have deleted the main cube – In the hierarchy, drag the camera off, then select the cube and hit the delete key

Prefab Assets can contain images, code, polygons, music, etc. They can also contain Prefabs – Prefabs are collections of objects and scripts to place in the world Select and drag the first person controller onto the screen In play mode, you can now move around (asdf, or arrow keys), space to jump, and look with the mouse

Back to Programming - Conditionals Create new script called FallOff If you fall off of the world, this will put you back at the beginning Conditional “if”, only run the code if true If the y coordinate is below a given level, then move to 0,0,0 Then attach to your character – Experiment with running off of the platform

A Simple Game Just by adding in a few platforms, we can make a game. Try to get from the left platform to the right one.