Cosc 5/4735 -

Cosc 5/4735 -

Cosc 5/4735 Unity 3D Getting Started Guide for Android. Unity What is Unity? Its a 2D and 3D graphics development environment.

Designed to create games, but is used for more Multiplatform support Includes VR support as well. Write once, deploy to many. Get Unity

On the unity site, use the Get Unity link Select Personal Or Professional if you want to pay for it Download the installer. Install it, When asked in the install, install Android (ios, tizen, etc are options too)

You will need to create an account with unity. When you start up it will require you to login. For the purposes of this lecture, The version installed was 5.3.4f1

Use File-> new Project 3D (or 2D depends on need) Or sample project if you installed it. Add some assets Characters, crossPlatformInput, cameras, environment, etc. You can now use the Create-> 3D object, light source,

etc to add objects to your scene. Hold the right mouse down to move the view of the scene. Click on an object to transform it. Create -> 3D object -> terrain To adds a large terrain object. Im to demo this in class from a New project to install on a android device.

Make a spinning cube Create-> 3DObject ->cube Move the cube as needed in the space. In Assets Create -> C# script

Name it something like spin Double click the script Add to Update() method transform.Rotate (new Vector3 (15, 30, 45) * Time.deltaTime); We are going to attach the script to the cube

Click on the Cube in Hierarchy On the right, Add Component -> Scripts -> spin Add controls and moving. Add a character to walk around our environment. Project -> Assets->Characters-> FirstPersonCharacter>Prefabs->FPSController

Now we need to add mobile controls Project -> Assets -> CrossPlatformInput -> Prefabs -> DualTouchControls -> Jump Gives move, jump, and look around control. Or add MobileSingleStrikControl: JumpButton and MobileJoyStick

Testing You can use the play button to test the environment in idle. Mouse and keyboard controls Once you are ready, Build and Run Select Android

It will ask where the android sdk is the first time Then it should install on a physical device. The first time around, it will likely take 2 to 3 minutes. Tip of the Iceberg This is only the tip of what you can do. Well see more with CardBoard and Unity

Unity may have been what some of you wanted cosc 1010 to be. IE, but I just want to write games. Importing Assets You can create a lot of assets in something like

blender and then import them into unity. Other 3D editors are much better Example with a Maze from blender. Import the asset. In this case, we want the walls to stop us from moving through them so click Generate Colliders and apply.

References Unity web site: Unity Game Development in 24 hours, Tristem & Geig, SAMS, Jan 2016 Previous years presentation by By Caleb Carlson, Brandon Neff, and Nathan Spaulding

AN EXAMPLE Rocket Golf!!! Creating A Project

Creating Shapes The Camera Display the content of the entire project to the user. When a new scene is

created, a GameObject is created and the camera is then paired with that object. Camera Script to track the ball public GameObject player;

private Vector3 offset; // Use this for initialization void Start () { offset = transform.position - player.transform.position; } // Update is called once per frame void LateUpdate () {

transform.position = player.transform.position + offset; } Fixing Camera Location Physics To get an object to animate you need to add a Rigidbody to

you object. This is the basic 3D Physics component to get your object to act to collisions and gravity. Scripts Scripts allow you to modify how objects interact with each other beyond the basic collision.

Two Types Of Contact: Collision vs Trigger Triggers are used when you want to objects to overlap and collect each other Collisions are meant for when objects are going to collide and have physics forces act on each shape

To the project! How did we make that awesome car??? We didnt Assets Store

Adding textures, trees, and more has never been easier! Exporting the project! Building in Android Back to the project!

It even works on IOS devices Back to the project! References http:// (Great tutorial for game basics) (Unity Manual) (Asset Store) Play the game that inspired it all.


Recently Viewed Presentations

  • WCL320-R: Windows Intune in Real Life (repeated from May 18 ...

    WCL320-R: Windows Intune in Real Life (repeated from May 18 ...

    MVP- MCT- Network Engineer. CEO IT Training Australia. WCL320-R. ... Not a replacement for System Center since it doesn't have feature parity. ... or scan at the end of the presentation to evaluate your session and download materials. We're...
  • Structuring large answer questions

    Structuring large answer questions

    Digital social communication refers to messaging others via technology such as the internet. Some argue that the increase in use of digital social communication can widen participation in democracy and has the potential to help people in their pursuit of...
  • Theories of International Relations

    Theories of International Relations

    Realism Idealism (Liberalism or "Liberal Institutionalism) Constructivism Realism According to this theory, POWER is the only thing that governs in the end… the ability to influence others. Irrelevance of morality and ethics Irrelevance of domestic political systems Why is power...
  • Implementing Processes, Threads, and Resources

    Implementing Processes, Threads, and Resources

    Times New Roman Tahoma Arial Symbol Courier New Default Design Slide 1 Operating System Organization Purpose of an OS OS Requirements Slide 5 Abstraction & Sharing Slide 7 Performance Protection & Security Correctness & Maintainability OS Functions Device Management Process,...
  • Introduction to Software Engineering: Tools and Environments

    Introduction to Software Engineering: Tools and Environments

    Last time. Tools for bug management. After Git this is the second time that we focused on tools that are group specific. This time. Build tools. Can be developer specific but their main importance is in a larger context -...
  • Presentation title - Sistemapiemonte

    Presentation title - Sistemapiemonte

    Ireland Living and Working Labour Market Factors Young highly educated workforce Immigration & Irish returnees Emigration National wage agreements English language High female participation rate Ireland's Demography Total Population 4.4 million Population Aged 15+ 3.8 million Employment 2.1 million Unemployment...
  • An Introduction To Matrix Decomposition -

    An Introduction To Matrix Decomposition -

    is a diagonal matrix diag ... will be the dominant eigenvector of the . authority matrix. L. T. L. h. will be the dominant eigenvector of the . hub matrix . LL. T. They are in fact the first left...
  • AirProTM - Asahi America Inc.

    AirProTM - Asahi America Inc.

    Bevel or Peel dependent upon size pressing the pipe and the fitting on the heating element for preheating remove and join the pipe and fitting together Leaving the joint without load during the cooling time visual control of the joint...