Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

FixedList32Bytes<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 index of the destination range.
count The number of elements to copy and the amount by which to decrement the length.

Description

Copies the last "N" elements of this list to a range in this list. Decrements the length by "N".

Copies the last count-numbered elements to the range starting at index.

Useful as a cheap way to remove elements from a list when you don't care about preserving order.

Does nothing if the count is less than 1.