docs.unity.cn
    Show / Hide Table of Contents

    Method GetSharedValueIndicesBySourceIndex

    GetSharedValueIndicesBySourceIndex(Int32)

    Array of indices into shared value indices NativeArray which share the same source value For example, given Source NativeArray: [A,A,A,B,B,C,C,A,B] shared values are: [A,B,C] Shared value indices: [0,0,0,1,1,2,2,0,1] Given the index 2 into the source array (A), the returned array would contain: [0,1,2,7] (indices in SharedValueIndices that have a value of 0, i.e. where A is in the shared values)

    Declaration
    public NativeArray<int> GetSharedValueIndicesBySourceIndex(int indexIntoSourceBuffer)
    Parameters
    Type Name Description
    Int32 indexIntoSourceBuffer

    Index of source value

    Returns
    Type Description
    NativeArray<Int32>

    Index NativeArray where each element refers to an index into the shared value indices array.

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