Unity C# Scripting — Complete C# for Unity Game Development

Video description

Unity is free, easy to learn, has excellent documentation, and is the game engine used to build games. Jobs in Unity game development are plentiful and being able to understand C# scripting along with Unity game development puts a powerful skill at your fingertips. This course will show you how to combine the power of C# and Unity to create awesome games.

The course starts with explaining the installation process of Unity and Visual Studio and then takes you through the basics of C#. You will learn to create C# scripts to get a strong understanding of Unity game development. Once you have mastered the basics, you will dive into the intermediate concepts of C# and Unity by building 2D Android games. Moving along, you will learn version controlling to manage C# and Unity projects effectively. Finally, you will grasp the advanced concepts of C# and Unity needed to build 3D games from scratch.

By the end of this course, you will build a solid foundation in C# scripting and Unity game engine and will have developed the skills to make fully functional 2D and 3D games.

What You Will Learn

  • Understand the structure of a C# script
  • Become familiar with Unity’s API
  • Set up sprites for game characters and backgrounds
  • Create a 2D infinite scrolling background for runner games
  • Find out how to create a responsive user interface in Unity
  • Implement version controlling with GitHub, Bitbucket, and SourceTree

Audience

This course is designed for anyone interested in building games using C# and Unity. No prior programming skills are needed to get started with this course.

About The Author

Raja Biswas: Raja Biswas has taught game development and computer programming to thousands of people through his YouTube channel—Charger Games. He has helped many viewers publish their first game through his videos and has encouraged them to learn computer programming as well. He has a passion for learning new things and teaching those to anyone looking to learn.

Every day, Raja gets emails from all over the world, thanking him for all that he teaches through his tutorial videos. He is from India and has a diploma in engineering in computer science and technology and a bachelor’s degree in engineering in IT. He has learned and developed most of his skills from books and online tutorials and believes that anyone can learn anything today with the power of the Internet.

Table of contents

  1. Chapter 1 : Introduction to Unity C# Scripting
    1. Introduction to the C# Scripting Course
    2. Downloading and Installing Unity 2022
  2. Chapter 2 : Getting Started with C# Scripting in Unity
    1. Getting Started with C# Scripting in Unity
    2. Understanding the Structure of a C# Script
    3. Event Functions in Unity C#
    4. Variables in Unity C#
    5. Public Variables in Unity C#
    6. The Update Function in Detail
    7. Function Basics in C#
    8. Functions with Return Type and Parameters in Unity
    9. If-Else Statements in C#
    10. More Conditions and Equality Checking
    11. Understanding Boolean Variables
    12. Introduction to Arrays in Unity C#
    13. More About Arrays in C#
    14. Understanding For Loops in C#
    15. While Loops in Unity C#
    16. Learning Foreach Loop in C#
    17. Switch Case Statements in C#
  3. Chapter 3 : Diving into Core Unity C# Programming
    1. Searching and Finding GameObjects in Unity
    2. Getting Access to Components Using the GetComponent Function
    3. Moving, Rotating, and Scaling with the Transform Component
    4. Instantiating Random Objects in C#
    5. Repeatedly Calling Functions with the InvokeRepeating Function
    6. Working with Keyboard Inputs in Unity
    7. Smooth Movement with Input.GetAxis
    8. Working with Mouse Input in Unity C#
    9. Working with Physics - Creating a Player Controller
    10. Shooting Bullets Using Physics
    11. Checking Collisions in Unity with C#
    12. Working with Triggers
    13. Understanding the LookAt Function
    14. Loading Scenes/Levels in Unity with C#
  4. Chapter 4 : Intermediate Unity C# Scripting Concepts
    1. Classes and Objects – Object-Oriented Programming (OOP) Concepts
    2. Constructors in Unity C#
    3. Using System.Serializable to Initialize Objects
    4. C# Properties - Everything You Need to Know
    5. Enums in C#
    6. Inheritance in C# – Part 1
    7. Inheritance in C# – Part 2
    8. Polymorphism, Virtual Functions, and Overriding in C#
    9. Static Variables, Functions, and Classes in C#
    10. Understanding Method Overloading in C#
    11. Using Namespaces in C# and Unity
    12. Working with Attributes in Unity
    13. Understanding Coroutines in Unity C#
  5. Chapter 5 : Create a 2D Candy Catch Game - Start to Finish
    1. Setting Up Sprites for Game Characters and Backgrounds
    2. Setting Up the Candies
    3. Creating a Player Controller
    4. Restricting Player Movement within Boundaries
    5. Checking Whether the Monster Eats the Candies
    6. Removing the Candies When Out of Screen
    7. Spawning Random Candies
    8. Spawning Candies at Random Position
    9. Repeatedly Spawning Candies
    10. Checking the Score
    11. Showing the Score User Interface (UI) on the Screen
    12. Creating a Lives Counter
    13. Showing the Available Lives User Interface (UI)
    14. Stopping Candy Spawning on GameOver
    15. Creating a GameOver Panel
    16. Creating the Main Menu
    17. Creating a GameOver Menu Controller
    18. Animating the GameOver Panel
  6. Chapter 6 : Creating Useful C# Scripts Ready to Use in Your Projects
    1. Zooming in and out in Unity with C#
    2. Creating a Camera Shake Effect in Unity with C#
    3. Rotating Objects with the Mouse with C#
    4. Detecting Button Clicks and Calling Functions
    5. Creating a 2D Infinite Scrolling Background for Runner Games
  7. Chapter 7 : Scripting Basic Artificial Intelligence (AI) with C# in Unity
    1. Getting Started with NavMesh in Unity
    2. Chasing While Avoiding Obstacles
    3. All About NavMesh Agent in Unity
    4. Moving an Agent on the Ramp and Narrow Places
    5. Moving Intelligent Agent Upstairs
    6. Intelligent Agent Jumping with Off-Mesh Links
    7. Creating Off-Mesh Links Manually
  8. Chapter 8 : Scripting for Android and Mobile Devices in Unity
    1. Build an Android Game Start to Finish in 40 Minutes
    2. Working with Touch Inputs in Unity C#
    3. Touch and Destroy Objects with RayCasting in Unity C#
    4. Accelerometer Inputs in Unity C#
    5. Accelerometer Inputs in Unity C# - Part 2
    6. Creating Responsive UI in Unity
    7. Touch Swipe Controls in Unity C#
  9. Chapter 9 : Learn Version Controlling - Managing Your Unity C# Projects Effectively
    1. Why Use Version Controlling in Your Projects?
    2. Cloning and Creating a New Repository
    3. Practical Version Controlling - Example
    4. Branching Your Projects
    5. Pushing a Local Repository to GitHub and Bitbucket
  10. Chapter 10 : Building a Complete 3D Game with Unity and C#
    1. Setting Up the Game Level
    2. Controlling the Ball
    3. Moving the Ball after the First Touch
    4. Checking When the Ball Falls Off the Platform
    5. Camera Following the Ball Smoothly
    6. Making Platforms Fall Down after the Ball Goes Away
    7. Spawning the Platforms
    8. Random Platform Spawning Algorithm
    9. Fixing Platform Falling
    10. Creating Diamonds and Randomly Spawning
    11. Destroying Diamonds on Collision
    12. Creating Awesome Particle Effects
    13. Create UIManager and Text Animations
    14. More on Main Menu User Interface (UI) Animations
    15. GameOver Menu and Animations
    16. Scripting the UIManager
    17. ScoreManager Score and High Score
    18. Creating GameManager and Controlling the Whole Game
    19. Final Fixes and Finishing the Game
    20. Building and Publishing Your Game

Product information

  • Title: Unity C# Scripting — Complete C# for Unity Game Development
  • Author(s): Raja Biswas
  • Release date: July 2019
  • Publisher(s): Packt Publishing
  • ISBN: 9781838985035