Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddRange

Copies the elements of a buffer to the end of this list.
Read time 1 minuteLast updated 13 days ago

Definition

AddRange(void*, int)

Copies 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.

Remarks

Increments the length by
count
. Increases the capacity if necessary.

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.

AddRange(UnsafeList<T>)

Copies the elements of another container to the end of the list.
public void AddRange(UnsafeList<T> container)

Parameters

container

The container to copy from.

Remarks

The length is increased by the length of the other container. Increases the capacity if necessary.