Table of Contents

Class InspectorList<T>

Namespace
Gamelogic.Extensions
Assembly
Assembly-CSharp.dll

Exactly the same as generic List, but has a custom property drawer that draws a re-orderable list in the inspector.

[Version(2, 5, 0)]
[Serializable]
[Obsolete("Unity now draws lists properly by default.")]
public class InspectorList<T> : InspectorList, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T

The type of the contents of this list.

Inheritance
InspectorList<T>
Implements
Derived
Inherited Members
Extension Methods

Remarks

This class should not be used directly (otherwise, it will not appear in the inspector). Instead, use either one of the provided subclasses, or define a new custom non-generic subclass and use that.

Constructors

InspectorList()

public InspectorList()

InspectorList(IEnumerable<T>)

public InspectorList(IEnumerable<T> initialValues)

Parameters

initialValues IEnumerable<T>

Properties

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[int]

public T this[int index] { get; set; }

Parameters

index int

Property Value

T

Methods

Add(T)

public void Add(T item)

Parameters

item T

AddRange(IEnumerable<T>)

public void AddRange(IEnumerable<T> item)

Parameters

item IEnumerable<T>

Clear()

public void Clear()

Contains(T)

public bool Contains(T item)

Parameters

item T

Returns

bool

CopyTo(T[], int)

public void CopyTo(T[] array, int arrayIndex)

Parameters

array T[]
arrayIndex int

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

IndexOf(T)

public int IndexOf(T item)

Parameters

item T

Returns

int

Insert(int, T)

public void Insert(int index, T item)

Parameters

index int
item T

Remove(T)

public bool Remove(T item)

Parameters

item T

Returns

bool

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int