Unity Learn home
View Tutorial Content

Configure your visual script with variables

Tutorial
Beginner
+10 XP
20 Mins
(2671)
Overview
Summary
Variables are essential programming tools. With them, you can store, calculate, and manipulate the input values to the units of your scripts.
In this tutorial, you’ll learn how to use Visual Scripting to create and manage several kinds of variables that have different scopes and uses. By the end of this tutorial, you’ll be able to:
  • Create Graph, Object, and Scene variables and explain their uses
  • Add Get Variable units to a Graph using the Blackboard
  • Make variables available to be changed in the Inspector window
  • Troubleshoot adjusting variable values in Scene and Game views
  • Explain the Scene Variables object that appears in the Hierarchy of projects with Visual Scripts
Select your Unity version
Last updated: April 21, 2021
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
Language
English
Also included in
Configure your visual script with variables