Unity C# Tutorial: Going deeper with variables


We’ve seen working with variables on a basic level. In this tutorial I’ll show you how to use attributes to customise the inspector to make our lives easier; how to use out and ref parameters; and how to use our own custom classes in the inspector.

Find the code here: https://github.com/GameDevEducation/DevEssential_AdvancedVariables
Full list of Unity attributes: https://docs.unity3d.com/ScriptReference/AddComponentMenu.html