In this tutorial we're going to take a look at some helpful C# tricks that will let us write less code. In particular we'll look at how to serialize simple properties in the inspector; easy ways to access the last element in an array/list; interpolated strings; and switches and switch expressions.
🎞️ Chapters
00:00 Introduction and General Setup
00:42 Exposing properties in the inspector
07:30 Array and list indexing tricks
15:20 String interpolation
22:05 Switches with case expressions
28:30 Switch expressions
34:54 Closeout
📂 Grab the full project ➠ https://github.com/GameDevEducation/U...
If you've got questions add a comment below or send them in for the next Q&A video
🤔 Send in your questions ➠ https://forms.gle/ToyvqPaBFvpFLtNbA
📁 The searchable video archive is at ➠ https://www.iainmcmanus.dev/gamedev-e...
Looking for other ways to get involved?
🟠 Support the channel on Patreon ➠ / iaintheindie
🟡 Get the code for all the projects on GitHub ➠ https://github.com/orgs/GameDevEducation
🟢 Check out my games on itch.io ➠ http://iaintheindie.itch.io/
🟣 Follow me on Twitter ➠ / iaintheindie
🎉 Thankyou to all of the Patrons 🎉
➔ Manuel Baptista
➔ Grant Coble-Neal
➔ Kasper Enwall
➔ Adam Ercanbrack
➔ Maxamillian Marsh
➔ Kalvin Pearce
➔ Bradley Seymour
➔ Seriphis
➔ SiliconOrchid
➔ Callan Syratt
➔ Daniel Williams
#Unity #Tutorial #GameDev