Interface INativeList<T>
Namespace: Unity.Collections
Syntax
public interface INativeList<T> : IIndexable<T> where T : struct
Type Parameters
| Name | Description |
|---|---|
| T | The type of the elements in the container. |
Properties
Capacity
The number of items that the list can hold before it resizes its internal storage.
Declaration
int Capacity { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
IsEmpty
Reports whether container is empty.
Declaration
bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| Boolean | True if this container empty. |
Item[Int32]
Return the T at the given index. The index must be in the range of [0..Length).
Declaration
T this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The T index to access. |
Property Value
| Type | Description |
|---|---|
| T | A value T for the requested index. |
Methods
Clear()
Clears the list.
Declaration
void Clear()
Remarks
List Capacity remains unchanged.