Lists — what are they?

They are the same as arrays but you can populate it dynamically vs arrays, which simply grab all elements. This is how you create a list.

We first identify what type of item will we put into our list (gameobjects, float, int) and then identify it with a variable name.

This is the syntax difference between lists and arrays. They are initalized differently as well.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Al Heck

Unity Developer and Software Engineer who loves making games with GameDevHQ