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 classes

Tutorial
Beginner
25 Mins
Overview
Summary
In this tutorial, you’ll:
  • Learn about the role of classes in organising code
  • Learn about accessing data in different places using the dot operator (for example, variables inside other variables)
  • Review examples of dot operator use in the SpawnerSample script
  • Review the use of class as a type
When you’ve finished, you’ll be ready to write your own class for the SpawnerSample script.
Recommended Unity versions
2019.2
Industry
Language
English
Tutorial
Introduction to classes
8
Introduction to classes