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
- Chapter 1 : Introduction to Unity C# Scripting
-
Chapter 2 : Getting Started with C# Scripting in Unity
- Getting Started with C# Scripting in Unity
- Understanding the Structure of a C# Script
- Event Functions in Unity C#
- Variables in Unity C#
- Public Variables in Unity C#
- The Update Function in Detail
- Function Basics in C#
- Functions with Return Type and Parameters in Unity
- If-Else Statements in C#
- More Conditions and Equality Checking
- Understanding Boolean Variables
- Introduction to Arrays in Unity C#
- More About Arrays in C#
- Understanding For Loops in C#
- While Loops in Unity C#
- Learning Foreach Loop in C#
- Switch Case Statements in C#
-
Chapter 3 : Diving into Core Unity C# Programming
- Searching and Finding GameObjects in Unity
- Getting Access to Components Using the GetComponent Function
- Moving, Rotating, and Scaling with the Transform Component
- Instantiating Random Objects in C#
- Repeatedly Calling Functions with the InvokeRepeating Function
- Working with Keyboard Inputs in Unity
- Smooth Movement with Input.GetAxis
- Working with Mouse Input in Unity C#
- Working with Physics - Creating a Player Controller
- Shooting Bullets Using Physics
- Checking Collisions in Unity with C#
- Working with Triggers
- Understanding the LookAt Function
- Loading Scenes/Levels in Unity with C#
-
Chapter 4 : Intermediate Unity C# Scripting Concepts
- Classes and Objects – Object-Oriented Programming (OOP) Concepts
- Constructors in Unity C#
- Using System.Serializable to Initialize Objects
- C# Properties - Everything You Need to Know
- Enums in C#
- Inheritance in C# – Part 1
- Inheritance in C# – Part 2
- Polymorphism, Virtual Functions, and Overriding in C#
- Static Variables, Functions, and Classes in C#
- Understanding Method Overloading in C#
- Using Namespaces in C# and Unity
- Working with Attributes in Unity
- Understanding Coroutines in Unity C#
-
Chapter 5 : Create a 2D Candy Catch Game - Start to Finish
- Setting Up Sprites for Game Characters and Backgrounds
- Setting Up the Candies
- Creating a Player Controller
- Restricting Player Movement within Boundaries
- Checking Whether the Monster Eats the Candies
- Removing the Candies When Out of Screen
- Spawning Random Candies
- Spawning Candies at Random Position
- Repeatedly Spawning Candies
- Checking the Score
- Showing the Score User Interface (UI) on the Screen
- Creating a Lives Counter
- Showing the Available Lives User Interface (UI)
- Stopping Candy Spawning on GameOver
- Creating a GameOver Panel
- Creating the Main Menu
- Creating a GameOver Menu Controller
- Animating the GameOver Panel
- Chapter 6 : Creating Useful C# Scripts Ready to Use in Your Projects
- Chapter 7 : Scripting Basic Artificial Intelligence (AI) with C# in Unity
- Chapter 8 : Scripting for Android and Mobile Devices in Unity
- Chapter 9 : Learn Version Controlling - Managing Your Unity C# Projects Effectively
-
Chapter 10 : Building a Complete 3D Game with Unity and C#
- Setting Up the Game Level
- Controlling the Ball
- Moving the Ball after the First Touch
- Checking When the Ball Falls Off the Platform
- Camera Following the Ball Smoothly
- Making Platforms Fall Down after the Ball Goes Away
- Spawning the Platforms
- Random Platform Spawning Algorithm
- Fixing Platform Falling
- Creating Diamonds and Randomly Spawning
- Destroying Diamonds on Collision
- Creating Awesome Particle Effects
- Create UIManager and Text Animations
- More on Main Menu User Interface (UI) Animations
- GameOver Menu and Animations
- Scripting the UIManager
- ScoreManager Score and High Score
- Creating GameManager and Controlling the Whole Game
- Final Fixes and Finishing the Game
- Building and Publishing Your Game
Product information
- Title: Unity C# Scripting — Complete C# for Unity Game Development
- Author(s):
- Release date: July 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838985035
You might also like
book
Advanced Unity Game Development: Build Professional Games with Unity, C#, and Visual Studio
Jump start your Unity game development journey with a detailed review of a complete, professionally built …
video
Unity Game Projects — 20+ Mini Projects in Unity and C#
Unity is free, easy to learn, has excellent documentation, and is the game engine used for …
book
Learning C# by Developing Games with Unity - Seventh Edition
Learn C# programming from scratch using Unity as a fun and accessible entry point with this …
book
Learning C# by Developing Games with Unity 2020 - Fifth Edition
Key Features Understand C# programming basics, terminology, and coding best practices Put your knowledge of C# …