{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method InsertRangeWithBeginEnd | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InsertRangeWithBeginEnd

    InsertRangeWithBeginEnd(int, int)

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

    Declaration
    public void InsertRangeWithBeginEnd(int begin, int end)
    Parameters
    Type Name Description
    int begin

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

    int end

    The index where the first shifted element will end up.

    Remarks

    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.

    Exceptions
    Type Condition
    IndexOutOfRangeException

    Thrown if the new length exceeds the capacity.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)