COVID-19 Support:
We’re providing all users three months of complimentary access to Unity Learn Premium.
Just log in to start learning.

Switch Statements

Tutorial
Beginner
5 Mins
Overview
Details
Your progress
Summary
Switch statements act like streamline conditionals. They are useful for when you want to compare a single variable against a series of constants. In this video you will learn how to write and use switch statements.
This tutorial is included in the Beginner Scripting project.
Previous: Enumerations
Next: This is the final tutorial in the project.
Recommended Unity versions
4 and Above
Topics we'll cover
Industry
Language
English
Switch Statements