We may earn an affiliate commission when you visit our partners.
Pete Jepson

Do you want to learn to create games in Unity but feel confused by C# scripting? In this course I am going to cover all the basic concepts of C# coding to get you to a beginner level in Unity game design.

This course is intended for people who have little to no experience of C# scripting. It is perfect for people who have never scripted before as we look in detail at each concept of  C# scripting. We first cover the theory and then you get opportunities to try them out. Toward the end of the course we put these concepts into use by creating a complete beginner level game.

We cover concepts such as:

Read more

Do you want to learn to create games in Unity but feel confused by C# scripting? In this course I am going to cover all the basic concepts of C# coding to get you to a beginner level in Unity game design.

This course is intended for people who have little to no experience of C# scripting. It is perfect for people who have never scripted before as we look in detail at each concept of  C# scripting. We first cover the theory and then you get opportunities to try them out. Toward the end of the course we put these concepts into use by creating a complete beginner level game.

We cover concepts such as:

  • functions and methods

  • Input events

  • Variable data types

  • Arrays

  • Conditional statements

  • Moving and rotating objects using code

  • Accessing and manipulating components

  • Physics interactions

  • Animations

  • Scripting for a user interface

These are the most common things you will be doing when making beginner level games. When we have finished the theory, I will be guiding you step by step through the production of a target shooter game so that you will see how these scripting concepts work using real world examples.

I guarantee that by the end of this course you will have developed new skills in coding and you will feel confident making your own games upto a beginner level. You will also have created your first Unity game.

So, if you want to start creating games in Unity, why not enrol today and I look forward to seeing you in my course.

Enroll now

What's inside

Learning objectives

  • Learn basic c# code
  • Learn most common script commands
  • Learn about variables, conditional statements, components and more
  • Create a complete target shooter game

Syllabus

Introduction
Install Unity
Unity Interface
C# Concepts
Read more
Create a script
Using the console tab
Event Functions
Timing of functions

Choosing which function is best for different actions

Invoke
Coroutines
Physics Collisions
Physics Triggers
Input events
Input mouse buttons
Input GetAxis
Rotation by axis
Variables
Changing variables
Arrays
Data types
if statements
multiple if conditions
casting to data types
game object variables
Checking game objects
Vector3 variables
Quaternion variables
transform variable
lerp movement
transform translate
Components
other components
setting up components
components in child objects
Switching items off
Collider component
Tags
Add a component in script
Required components
spawning objects
broadcast message
Scripts as components
public static variables
Animator component
Animator conditions
Animator transitions
Using animations on multiple objects
Particles
User Interface (UI)
UI buttons
UI text
UI Images
Changing text in code
Project
Project overview
Project Setup
Text setup
Move script
Stopping at the wall
Destroying targets
Spawning objects
Checking spawned items
Adding a crosshair
Adding sounds
UI script
Assigning UI text
Adding background music
Center targets
Highscore
New highscore text
Colour labels
Main menu
Menu script
Setting a time limit
Exporting the game
Course Completion

Save this course

Save Learn Unity C# for beginners to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Learn Unity C# for beginners with these activities:
Review C# Fundamentals
Solidify your understanding of C# fundamentals before diving into Unity-specific scripting. This will make grasping the course material much easier.
Show steps
  • Review basic C# syntax and data types.
  • Practice writing simple C# programs.
  • Familiarize yourself with object-oriented programming concepts.
Follow Unity Beginner Tutorials
Explore Unity's official tutorials or other beginner-friendly tutorials on YouTube to get a feel for the Unity interface and basic game development workflows. This will complement the course material.
Show steps
  • Search for Unity beginner tutorials online.
  • Follow the tutorials step-by-step.
  • Experiment with the code and settings.
Review 'C# 7.0 in a Nutshell'
Deepen your understanding of C# with a comprehensive reference guide. This will help you troubleshoot and understand more complex scripting concepts in Unity.
Show steps
  • Read the chapters relevant to the course topics.
  • Use the book as a reference when encountering unfamiliar C# syntax.
Four other activities
Expand to see all activities and additional details
Show all seven activities
Complete C# Coding Challenges
Reinforce your C# knowledge by completing coding challenges on platforms like HackerRank or LeetCode. This will improve your problem-solving skills and coding fluency.
Show steps
  • Find C# coding challenge websites.
  • Solve problems related to variables, loops, and conditional statements.
  • Practice regularly to improve your coding speed and accuracy.
Create a Simple C# Console Game
Apply your C# knowledge by building a simple console-based game like a number guessing game or a text adventure. This will solidify your understanding of basic programming concepts.
Show steps
  • Choose a simple game concept.
  • Plan the game logic and write the C# code.
  • Test and debug your game.
Document Your Learning Journey
Create a blog or journal to document your learning progress, challenges, and solutions. This will help you reflect on your learning and reinforce your understanding of the concepts.
Show steps
  • Start a blog or journal.
  • Write about what you've learned in each module.
  • Share your challenges and solutions.
Review 'Unity in Action, Second Edition'
Expand your Unity knowledge with a comprehensive guide to game development. This will help you build more complex and engaging games.
Show steps
  • Read the chapters relevant to your game projects.
  • Experiment with the code examples in the book.

Career center

Learners who complete Learn Unity C# for beginners will develop knowledge and skills that may be useful to these careers:
Game Developer
A game developer brings video game concepts to life through coding, design, and testing. This course helps aspiring game developers learn the fundamentals of C# scripting within the Unity game engine, which is essential for creating interactive game elements. You will learn how to manage input events, manipulate objects, and handle physics interactions—all crucial skills for a game developer. By completing the target shooter game project, you will gain practical experience in applying these concepts to a real-world game scenario, increasing your confidence in making your own games at a beginner level. In particular the course will give the foundation to create user interfaces.
Unity Developer
A Unity Developer specializes in creating interactive 2D and 3D experiences using the Unity game engine. This course directly addresses the needs of aspiring Unity developers by providing a comprehensive introduction to C# scripting. You will gain hands-on experience with essential concepts such as variable data types, conditional statements, and accessing components. The course's project of building a complete target shooter game provides practical experience in applying these scripting concepts within Unity. You will see how to move and rotate objects, handle physics interactions, and create interactive user interfaces. This course will help build the foundation for developing games and interactive applications in Unity.
Indie Game Developer
An Indie Game Developer works independently or as part of a small team to create and publish their own games. This course is especially well-suited for aspiring indie game developers, as it provides a practical and accessible introduction to C# scripting within the Unity engine. You will learn to create interactive game elements, handle user input, and design user interfaces. The step-by-step project of creating a target shooter game provides hands-on experience in bringing a game from concept to completion. Moreover, you will gain experience exporting the game for distribution.
Mobile Game Developer
A Mobile Game Developer specializes in creating games for mobile devices, often using platforms like Unity. This course helps aspiring mobile game developers learn C# scripting, which is crucial for building interactive and engaging mobile games within Unity. You will learn about input events, object instantiation, and handling user interfaces—all critical aspects of mobile game development. The final project involves creating a complete game, which allows you to apply these skills. In particular the course provides experience creating a main menu.
C Programmer
A C# Programmer writes code using the C# programming language to develop various applications, including games, desktop software, and web applications. This course is designed to equip you with the basic C# coding skills necessary for a C# Programmer. You will learn fundamental concepts such as functions, methods, variable data types, and conditional statements. The course emphasizes practical application through hands-on exercises and the creation of a target shooter game. By learning how to manipulate components, handle physics interactions, and script for user interfaces, you will gain a strong foundation in C# programming, in a way that is particularly helpful for Unity game design.
Virtual Reality Developer
A Virtual Reality Developer creates immersive experiences using virtual reality (VR) technology. This course helps aspiring VR developers, as it provides a practical introduction to C# scripting within the Unity engine, which is a popular platform for VR development. You will learn how to handle input events, manipulate objects, and create interactive user interfaces, all of which are essential for building engaging VR experiences. The course’s step-by-step guide to creating a target shooter game provides hands-on experience in applying these concepts to a real-world project. Learning about physics collisions and physics triggers is helpful.
Augmented Reality Developer
An Augmented Reality Developer designs and develops applications that overlay digital content onto the real world. This course provides a foundational understanding of C# scripting within the Unity engine, which is frequently used for AR development. You will learn how to manipulate objects, handle input events, and create interactive experiences, all of which are essential for AR applications. The target shooter project provides practical experience in applying these concepts. Moreover, the course's coverage of the user interface may be useful for designing intuitive and engaging AR interfaces.
Software Developer
A Software Developer designs, develops, and tests software applications. While this role encompasses a broad range of programming languages and platforms, this course provides a valuable entry point into software development through C# scripting. You will learn essential programming concepts such as variables, conditional statements, and functions. The course's emphasis on practical application through the creation of a target shooter game helps bridge the gap between theory and real-world software development. Additionally, you will discover how to apply programming practices to the Unity game engine, which may be useful for 3D applications.
Game Designer
A Game Designer conceptualizes and designs the various elements of a game, including gameplay mechanics, story, and user interface. While game designers may not always directly write code, understanding C# scripting can greatly enhance their ability to communicate with developers and prototype game ideas. This Unity and C# course may be useful for aspiring game designers to gain a foundational understanding of the technical aspects of game development. Learning concepts such as input events, physics interactions, and animations enables game designers to better understand the possibilities and limitations of the Unity engine, which may help them in their designs. Game designers also benefit from understanding the basics of components.
Animator
An Animator creates the motion and visual effects for characters, objects, and environments in games, films, and other media. While animation primarily involves artistic skills, understanding C# scripting can be beneficial for animators working in game development, especially within the Unity engine. This course may be useful for animators to learn how to control animations through code, trigger animations based on game events, and integrate animations with other game systems. Learning about the Animator component, animator conditions, and animator transitions enables you to create more dynamic and interactive animations.
Simulation Developer
A Simulation Developer creates software simulations for training, research, or entertainment purposes. This often involves using game engines like Unity. This C# course may be useful for aspiring simulation developers because they can use the content to gain proficiency in C# scripting which is essential for creating interactive simulation environments in Unity. The course's coverage of physics interactions, input events, and object manipulation provides a solid foundation for building realistic and engaging simulations. Learning about Vector3 and Quaternion variables and lerp movement is especially useful.
Technical Artist
A Technical Artist bridges the gap between art and programming in game development. While technical artists typically have a strong artistic background, understanding C# scripting can greatly enhance their ability to create tools, automate tasks, and optimize game assets within Unity. This course may be useful for aspiring technical artists to gain a foundation in the technical aspects of game development. Learning about components, manipulating objects, and working with animations enables technical artists to better integrate their artistic creations into the game engine and collaborate effectively with programmers.
Level Designer
A Level Designer is responsible for creating the environments and layouts in which games take place. Though level design primarily involves artistic and spatial reasoning skills, understanding C# scripting can be beneficial for level designers who want to create more dynamic and interactive environments within Unity. This course may be useful for level designers to learn how to trigger events, control object behavior, and customize gameplay elements through code. You will discover how to spawn objects automatically and destroy them at the wall, among other skills.
Instructional Designer
An Instructional Designer creates learning experiences and materials, often using technology to enhance the process. This course may be useful for aspiring instructional designers who focus on game development or interactive simulations. You will gain practical experience with C# scripting, which may be useful for creating interactive learning modules within Unity. The course's emphasis on hands-on exercises and building a game provides a concrete example of how to apply programming to create engaging and educational content. The course provides insight into the basic structure of games.
Quality Assurance Tester
A Quality Assurance Tester identifies and documents software defects through systematic testing. This course provides an understanding of the basic scripting concepts, which may be useful in your role. You will learn how games use scripting to define interactions. This foundation, even at a beginner level, may enable you to more effectively identify, document, and communicate issues in game logic and behavior. Gaining some development experience will enhance your communication skills when relaying bugs.

Reading list

We've selected two books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Learn Unity C# for beginners.
Provides a comprehensive guide to Unity game development. It covers a wide range of topics, from basic concepts to advanced techniques. While some content may be beyond the scope of the beginner course, it serves as an excellent resource for expanding your knowledge and skills after completing the course. It is commonly used as a textbook at academic institutions.
Provides a comprehensive reference to the C# language. It is useful for understanding the underlying principles of C# and how it relates to Unity scripting. While not a beginner's book, it's a valuable resource for deepening your understanding of the language and its features, especially as you progress beyond the basics covered in the course. It is commonly used by industry professionals.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser