Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddRange

Adds elements from a buffer to this list.
Read time 1 minuteLast updated 13 days ago

Definition

AddRange(void*, int)

Adds elements from a buffer to this list.
public void AddRange(void* ptr, int length)

Parameters

A pointer to the buffer.

length

The number of elements to add to the list.

AddRange(UnsafePtrList<T>)

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

Parameters

The other list to copy from.

Remarks

Increments the length by the length of the other list. Increases the capacity if necessary.