文档

Unity Engine

Unity Engine

Add(in T)

Appends an element to the end of this list. Increments the length by 1.
阅读时间1 分钟最后更新于 1 个月前

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 FixedList32Bytes<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.