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

FixedList512Bytes<T0>.InsertRangeWithBeginEnd

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 InsertRangeWithBeginEnd(int begin, int end);

Parameters

Parameter Description
begin The index of the first element that will be shifted up.
end The index where the first shifted element will end up.

Description

Shifts elements toward the end of this list, increasing its length.

Right-shifts elements in the list so as to create 'free' slots at the beginning or in the middle.

The length is increased by end - begin.

If end equals begin, the method does nothing.

The element at index begin will be copied to index end, the element at index begin + 1 will be copied to end + 1, and so forth.

The indexes begin up to end are not cleared: they will contain whatever values they held prior.