文档

Unity Engine

Unity Engine

Insert(int, T)

Inserts an element at the specified index, resizing as necessary.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void Insert(int index, T elem)

Parameters

index

The position at which to insert the new element.

elem

T
The element to add to the buffer.

Remarks

The buffer is resized if it has no additional capacity.