Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

DynamicBuffer<T0>.RemoveRangeSwapBack

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void RemoveRangeSwapBack(int index, int count);

Parameters

Parameter Description
index The first element to remove.
count How many elements tot remove.

Description

Removes the specified number of elements, starting with the element at the specified index. It replaces the elements that were removed with a range of elements from the back of the buffer. This is more efficient than moving all elements following the removed elements, but does change the order of elements in the buffer.

The buffer capacity remains unchanged.