docs.unity.cn
    Show / Hide Table of Contents

    Method GetSharedValueIndicesBySharedIndex

    GetSharedValueIndicesBySharedIndex(Int32)

    Array of indices into source NativeArray which share the same shared value 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) Shared value start offsets (into sorted indices): [0,4,7] Given the index 0 into the shared value array (A), the returned array would contain [0,1,2,7] (indices into the source array which point to the shared value A).

    Declaration
    public NativeArray<int> GetSharedValueIndicesBySharedIndex(int sharedValueIndex)
    Parameters
    Type Name Description
    Int32 sharedValueIndex

    Index of shared value

    Returns
    Type Description
    NativeArray<Int32>

    Index NativeArray where each element refers to an index into the source array.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023