Unity Learn home
View Tutorial Content

Write your own spawn function

Tutorial
Beginner
+10 XP
30 Mins
(40)
Overview
Summary
In this tutorial, you’ll:
  • Write a function to spawn health potions in a more efficient way
  • Check your code in Unity Editor
  • Learn about scope, and how to access information in different scripts
When you’ve done this, you’ll be ready to think about organizing scripts at a higher level.
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
Write your own spawn function