기술 자료

Unity Engine

Unity Engine

InsertRangeWithBeginEnd(int, int)

Shifts pointers toward the end of this list, increasing its length.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public void InsertRangeWithBeginEnd(int begin, int end)

Parameters

begin

The index of the first pointer that will be shifted up.

end

The index where the first shifted pointer will end up.

Remarks

Right-shifts pointers in the list so as to create 'free' slots at the beginning or in the middle.
The length is increased by
end - begin
. If necessary, the capacity will be increased accordingly.
If
end
equals
begin
, the method does nothing.
The pointer at index
begin
will be copied to index
end
, the pointer 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 pointers they held prior.