Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Pop

Removes and returns the last element of this append buffer.
Read time 1 minuteLast updated 13 days ago

Definition

Pop<T>()

Removes and returns the last element of this append buffer.
public T Pop<T>() where T : unmanaged

Returns

Type

Description

TThe element removed from the end of this append buffer.

Remarks

It is your responsibility to specify the correct type. Do not pop when the append buffer is empty.

Pop(void*, int)

Removes and copies the last element of this append buffer.
public void Pop(void* ptr, int structSize)

Parameters

The location to which the removed element will be copied.

structSize

The size of the element to remove and copy.

Remarks

It is your responsibility to specify the correct
structSize
. Do not pop when the append buffer is empty.