Switch Statements

Tutorial
Beginner
5 Mins
Overview
Details
Your progress
Also included in
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.
Select your Unity version
Last updated: March 20, 2020
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.x
4.x
Topics we'll cover
Industry
Language
English
Tutorial
Switch Statements
5
Switch Statements