Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Add

Appends an element to the end of this append buffer.
Read time 1 minuteLast updated 13 days ago

Definition

Add<T>(T)

Appends an element to the end of this append buffer.
public void Add<T>(T value) where T : unmanaged

Parameters

value

T
The value to be appended.

Add(void*, int)

Appends an element to the end of this append buffer.
public void Add(void* ptr, int structSize)

Parameters

A pointer to the value to be appended.

structSize

The size in bytes of the value to be appended.

Remarks

The value itself is stored, not the pointer.

Add<T>(NativeArray<T>)

Appends all elements of an array to the end of this append buffer.
public void Add<T>(NativeArray<T> value) where T : unmanaged

Parameters

The array whose elements will all be appended.