Documentation

Unity Engine

Unity Engine

Insert(int, T)

Inserts an element at the specified index, resizing as necessary.
Read time 1 minuteLast updated 4 days ago

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.