Unity Learn home
View Tutorial Content

Introduction to functions

Tutorial
Beginner
+10 XP
0 Mins
(145)
Summary
In this tutorial, you’ll: Write code to create another health potion at game start Learn about functions and their role in code Identify the function that’s in the SpawnerSample script already When you’ve finished, you’ll be ready to write your own function.
Select your Unity version
Last updated: November 01, 2023
2022.3
2021.3
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
Language
English
Introduction to functions