docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ConvertChildIndexToColliderKey

    ConvertChildIndexToColliderKey(int)

    Convert child index to collider key.

    Declaration
    public ColliderKey ConvertChildIndexToColliderKey(int childIndex)
    Parameters
    Type Name Description
    int childIndex

    Zero-based index of the child.

    Returns
    Type Description
    ColliderKey

    The child converted index to collider key. If the collider is not a CompoundCollider, returns Empty.

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