Switch Statements

Tutorial

·

Beginner

·

+10XP

·

5 mins

·

(2278)

Unity Technologies

Switch Statements

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.

Languages available:

1. Switch Statements


ConversationScript


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Complete this tutorial