September 2017
Beginner
1024 pages
32h 16m
English
C# collections enable you to act on several similar things as a group. For example, you could store all the enemy GameObjects in a List and loop over that List each frame to update all of their positions and states.
This chapter covers three important types of these collections in detail: Lists, arrays, and Dictionaries. By the end of this chapter, you will understand how these collection types work and which to use in various situations.
A collection is a group of objects that are referenced by a single variable. In regular life, collections would be things like a group of people, a pride of lions, a parliament of rooks, or a murder of crows. Just like these animal grouping terms, the collections you'll ...
Read now
Unlock full access