Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Insert(int, in T)

Inserts a single element at an index. Increments the length by 1.
Read time 1 minuteLast updated 6 days ago

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.