Introduction to the public keyword and inheritance
Tutorial
Beginner
20 Mins
Overview
Your progress
Summary
In this tutorial, you’ll:
  • Explore the public keyword, and the role this plays in code
  • Make a variable public and access it in Unity Editor
  • Explore the concept of inheritance and derived classes
When you’ve finished, you’ll be ready to create a custom effect for the health potions used in your SpawnerSample script.
Recommended Unity versions
2019.2
Industry
Language
English
Introduction to the public keyword and inheritance