Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Add(in T)

Appends an element to the end of this list. Increments the length by 1.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Add(T)

public void Add(in T item)

Parameters

item

T
The element to append at the end of the list.

Remarks

The same as FixedList128Bytes<T>.AddNoResize. Included only for consistency with the other list types. If the element exceeds the capacity, throws cref="IndexOutOfRangeException", and the list is unchanged.