List

Inherits from Object. Lists allow you to keep an ordered array of objects.

Fields

Field
Type
Readonly
Description

Count

int

true

Number of items.

Functions

Function
Returns
Description

Clear

null

Clears the list.

Get(index: int)

Object

Returns the item at given index.

Set(index: int, item: Object)

null

Sets the item at given index.

Add(item: Object)

null

Adds an item to the end of the list.

InsertAt(index: int, item: Object)

null

Inserts an item at the given index.

RemoveAt(index: int)

null

Removes the item at the given index.

Remove(item: Object)

null

Removes the item from the list.

Contains(item: Object)

bool

Returns true if the item is contained in the list.

Sort

null

Sorts the items in the list in place if the items are comparable (int, float, string).

Randomize

null

Randomizes the list order.

Last updated