Unity Learn home
View Project Content

C# Survival Guide - Properties

Project
Intermediate
+60 XP
40 Mins
(123)
Overview
Summary
In this project, you will learn how to use properties to correctly protect variables through getters and setters.
Project Objective
By the end of this project, you will be able to:
  • Understand when to use properties and when to use public variables
  • Construct an auto property
Select your Unity version
Last updated: April 19, 2021
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
Language
English
Unity Pro
The complete solution for professionals to create, operate and monetize.