COVID-19 Support:
We’re providing all users three months of complimentary access to Unity Learn Premium, from March 19 to June 20, 2020.
Just log in to start learning.

Introduction to functions

Tutorial
Beginner
30 Mins
Overview
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.
Recommended Unity versions
2019.2
Industry
Language
English
Introduction to functions