/ SOFTWARE ENGINEERING
2 min read

Game Development with Unity3D

Overview

What is Unity3D?

Unity3D is game development tool or game engine used by most of the developers in creating robust game applications for desktop, mobile, and web.

Terminologies
1. Project

The most important thing you need to have in order for you to start developing your game in Unity3D

2. Scene
  • Contains the environments and menu of a game
  • Most of the time separated based on different levels or view role
  • A game may contain several number of scenes
  • To save scene, Press Cmd + S (macOS) or Crtl + S (Windows)
3. Package
  • Asset Assets
    • Available on the Unity Asset Store
    • You are able to share and re-use Unity projects and assets with other developers
  • Unity Packages
    • Available through the Package Manager Window
    • You are able to export your existing assets and import it on your other projects
  • Standard Asset
    • Packages that is included when you install Unity3D (based on your installation preference)
  • Compressed files but special for for unity, normally haves .unitypackage extension
  • To import asset, Go to Assets > Import Package
4. Prefab (Prefabricated Object)
  • Convenient way of building GameObject in a scene
  • Allows you to store a GameObject with complete components and properties
  • Reusable, can be dragged or duplicated on different scenes
  • To create prefab, Go to Assets > Create Prefab
5. GameObject
  • Everything that is in your scene
  • May pertain to individual single or group of game objects
  • To create empty GameObject, Go to GameObject > Create
6. Components
  • Grouping of functionality and parameters that is attached and defines a GameObject’s design, property and behavior in the scene
  • Reusable and can be attached on different GameObjects
7. Scripts
  • Controls the behavior of GameObjects (eg. Object Movement)
  • Edited primarily in MonoBehavior
  • Can be written in C# or UnityScript (modelled after JavaScript)
  • Script file Anatomy
// ExampleScript.cs
using UnityEngine;
using System.Collections;

public class MainPlayer : MonoBehaviour {

    // Use this for initialization
    void Start () {
    
    }
    
    // Update is called once per frame
    void Update () {
    
    }
}

  • To create a script, Go to Assets > Create > C# Script
8. Asset
  • Representation of any item that can be used in your game
  • Vary depending on type (e.g. 3D Model, Audio file, Image, Scripts)
  • Comes in two types: External and Internal Assets

Workshop Outline

This link contains the guideline document I wrote and used for the workshop, it also has the step by step instructions on developing FPS and AR Games. It also includes mobile deployment guide for Android and iOS.

Source Code

Article content to be updated

Presentation