Add(T)
Adds an element to the end of the buffer, resizing as necessary.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public int Add(T elem)
Parameters
Returns
Type | Description |
|---|---|
| int | The index of the added element, which is equal to the new length of the buffer minus one. |
Remarks
The buffer is resized if it has no additional capacity.