docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSharedIndexBySourceIndex

    GetSharedIndexBySourceIndex(int)

    Index of shared value associated with an element in the source buffer. For example, given source array: [A,A,A,B,B,C,C,A,B] shared values are: [A,B,C] Given the index 2 into the source array (A), the return value would be 0 (A in shared values).

    Declaration
    public int GetSharedIndexBySourceIndex(int indexIntoSourceBuffer)
    Parameters
    Type Name Description
    int indexIntoSourceBuffer

    Index of source value

    Returns
    Type Description
    int

    Index into the list of shared values

    In This Article
    Back to top
    Copyright © 2024 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)