C# Arrays And Lists in Unity

Published: 29 September 2023
on channel: XR Terra Class
79
2

This video explains how to create Arrays and Lists in your custom C# scripts within Unity in order to manage groups of components or objects of the same type.

XRTerra Links:
Programs and Courses: http://www.xrterra.com/programs
Newsletter Signup: https://www.xrterra.com/mailing-list-...

00:00 Explaining Arrays
01:29 Array syntax
02:17 Random.Range()
02:50 Cube exercise setup
03:55 Scripting with arrays
07:04 Arrays in the Inspector
07:51 Index out of range exception
08:48 Testing out fixed exercise
09:16 Selecting randomly
10:31 Foreach loops
12:49 Testing out foreach loop
13:24 Lists
15:19 Arrays vs Lists
16:24 Declaring a list
17:47 Adding and remvoing self from list
19:39 Testing it out
21:09 Lists and foreach loops

Instructor: Gregory Osborne


Watch video C# Arrays And Lists in Unity online without registration, duration hours minute second in high quality. This video was added by user XR Terra Class 29 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 79 once and liked it 2 people.