InsertRange(int, int)
Shifts elements toward the end of this list, increasing its length.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public void InsertRange(int index, int count)
Parameters
Remarks
Right-shifts elements in the list so as to create 'free' slots at the beginning or in the middle.
The length is increased by . If necessary, the capacity will be increased accordingly.
countIf equals , the method does nothing.
count0The element at index will be copied to index , the element at index will be copied to , and so forth.
indexindex + countindex + 1index + count + 1The indexes up to are not cleared: they will contain whatever values they held prior.
indexindex + count