Unity Learn home
View Tutorial Content

Gameplay logic in Visual Scripting

Tutorial
Beginner
+10 XP
15 Mins
(45)
Overview
Summary
Scripting is all about logic: devising logical sequences and coding those sequences into your scripts. In this tutorial, you will start with the essential scripted object in this game — a door — and work through the logical sequence to make it open and close.
The main goal of this tutorial is to help you code these logical sequences on your own. We have provided step-by-step instructions that you can either follow or skip as you desire.
By the end of this tutorial, you’ll be able to:
  • Replace a Script Machine’s visual script.
  • Apply Boolean values and branching to a visual script.
  • Retrieve and set variable values in a visual script.
  • Apply existing events to a visual script.
  • Apply a subgraph to a visual script.
  • Given a desired result, code an appropriate visual script.
Select your Unity version
Last updated: December 11, 2023
2022.3
2021.3
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
Language
English
Gameplay logic in Visual Scripting