C# Arrays And Lists in Unity

Опубликовано: 29 Сентябрь 2023
на канале: 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