docs.unity3d.com
    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
    • 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