Supporting our Community:
We’re making Learn Premium available to all users in perpetuity.
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.
Select your Unity version
Last updated: November 22, 2019
2019.2
Industry
Language
English
Tutorial
Introduction to functions
16
Introduction to functions