Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddRange

Appends the elements of an array to the end of this list.
Read time 1 minuteLast updated 11 days ago

Definition

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

AddRange(NativeArray<T>)

Appends the elements of an array to the end of this list.
public void AddRange(NativeArray<T> array)

Parameters

The array to copy from.

AddRange(NativeList<T>)

Appends the elements of a NativeList to the end of this list.
public void AddRange(NativeList<T> list)

Parameters

The NativeList to copy from.

AddRange(void*, int)

Appends the elements of a buffer to the end of this list.
public void AddRange(void* ptr, int count)

Parameters

The buffer to copy from.

count

The number of elements to copy from the buffer.

AddRange(ReadOnlySpan<T>)

Copies elements from a ReadOnlySpan to the end of this list.
public void AddRange(ReadOnlySpan<T> roSpan)

Parameters

ReadOnlySpan to copy from.