文档

Unity Engine

Unity Engine

Insert(int, in T)

Inserts a single element at an index. Increments the length by 1.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Insert(int, T)

public void Insert(int index, in T item)

Parameters

index

The index at which to insert the element.

item

T
The element to insert.