Unity Learn home
View Tutorial Content

Custom events in Visual Scripting

Tutorial
Beginner
+10 XP
20 Mins
(201)
Overview
Summary
In programming, events are occurrences — that is, things that happen. Events allow you to design gameplay mechanics for when-this-do-that situations. In Visual Scripting, you can use custom events with just two units — a process that is much easier than in C#. In this tutorial, you will use custom events to make things happen for Clive the Cat.
By the end of this tutorial, you’ll be able to:
  • Add a new custom event trigger to a visual script.
  • Write a visual script that responds to a custom event.
  • Pass a GameObject from one script to another by way of a custom event.
  • Copy a visual script in the Project window.
  • Adapt a visual script to another purpose.
  • Add data inputs to an existing super unit
Select your Unity version
Last updated: March 15, 2022
2022.3
2021.3
2021.1
2020.3
2020.2
2020.1
2019.4
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
Language
English
Custom events in Visual Scripting