Pathways
LiveEducator Hub
  • Sidebar node image
    course
    Unity C# Survival Guide
Unity Version: 2018.4
Change
Contents
  • Sidebar node image
    unit
    C# Survival Guide - Quick Tips and Assets
  • Sidebar node image
    unit
    C# Survival Guide - Rotations
  • Sidebar node image
    unit
    C# Survival Guide - Variables
  • Sidebar node image
    unit
    C# Survival Guide - if Statements
  • Sidebar node image
    unit
    C# Survival Guide - Switch Statements
  • Sidebar node image
    tutorial
    C# Switch Statements
  • 1 Switch Statement Overview
  • Sidebar node image
    tutorial
    Challenge: Master Switch Statements Part 1
  • Sidebar node image
    tutorial
    Challenge: Master Switch Statements Part 2
  • Sidebar node image
    tutorial
    Challenge: Weapon Select Program
  • Sidebar node image
    unit
    C# Survival Guide - Loops
  • Sidebar node image
    unit
    C# Survival Guide - Arrays
  • Sidebar node image
    unit
    C# Survival Guide - Functions and Methods
  • Sidebar node image
    unit
    C# Survival Guide - Classes
  • Sidebar node image
    unit
    C# Survival Guide - Static Types
  • Sidebar node image
    unit
    C# Survival Guide - Properties
  • Sidebar node image
    unit
    C# Survival Guide - Namespaces
  • Sidebar node image
    unit
    C# Survival Guide - Lists
  • Sidebar node image
    unit
    C# Survival Guide - Enums
  • Sidebar node image
    unit
    C# Survival Guide - Dictionary
  • Sidebar node image
    unit
    C# Survival Guide - Abstract Classes
  • Sidebar node image
    unit
    C# Survival Guide - Delegates and Events
  • Sidebar node image
    unit
    C# Survival Guide - LINQ
  • Sidebar node image
    unit
    C# Survival Guide - Singletons
  • Sidebar node image
    unit
    C# Survival Guide - Object Pools
  • Sidebar node image
    unit
    C# Survival Guide - Command Pattern
  • Course completion details

C# Switch Statements

Tutorial

Beginner

+10XP

10 mins

183

Unity Technologies

C# Switch Statements

In this tutorial, you will learn about switch statements. These can be used for game logic, like if statements. They are used to efficiently check multiple conditions.

1. Switch Statement Overview

Complete this Tutorial

Language
Social
Learning
  • Pathways
  • Courses
  • Projects
  • Tutorials
  • Educator Hub
Live
  • Live Sessions
  • Previously recorded
Education Plans
  • Students
  • Educators
  • Institutions
  • Certifications
Resources
  • Unity Asset Store
  • Community
  • Documentation
  • Unity FAQ
  • Learn FAQ
Unity
  • Unity.com
  • Newsletter
  • Blog
  • Events
  • Unity Play
Copyright © 2026 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.