docs.unity3d.com
    Show / Hide Table of Contents

    Method GetSharedValueIndexCountBySourceIndex

    GetSharedValueIndexCountBySourceIndex(Int32)

    Number of occurrences of a shared (unique) value shared by a given a source index. For example, given source array: [A,A,A,B,B,C,C,A,B] shared values are: [A,B,C] Shared value counts: [4,3,2] (number of occurrences of a shared value) Given the index 2 into the source array (A), the return value would be 4 (for 4 occurrences of A in the source buffer).

    Declaration
    public int GetSharedValueIndexCountBySourceIndex(int indexIntoSourceBuffer)
    Parameters
    Type Name Description
    Int32 indexIntoSourceBuffer

    Index of source value.

    Returns
    Type Description
    Int32

    Count of total occurrences of the shared value at a source buffer index in the source buffer.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023