You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 9, 2025. It is now read-only.
Daniel Everland edited this page Oct 28, 2018
·
2 revisions
Introduction
Collections quite simply contain objects, just like we expect from a C# collection, but serialized in an asset inside your project
Note that Unity realy doesn't like it if you reference scene objects in assets, and as such have made certain editor functions incompatible with them. Therefore if any object in the collection is not persistent, they're disabled as you can see below, although you can still reorder, delete and click on them to see them in your scene view. Note that none of these conditions affect how they work under the hood, these precautions are merely related to the editor
Script Reference
There are various ways to interact with the collection. Available are the following members
Tthis[intindex]
IList List {get;}intCount{get;}TypeType{get;}voidAdd(T)voidRemove(T)