docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetChild

    GetChild(ref ColliderKey, out ChildCollider)

    Gets a child of this collider.

    Declaration
    public bool GetChild(ref ColliderKey key, out ChildCollider child)
    Parameters
    Type Name Description
    ColliderKey key

    [in,out] The key that identifies the child. Gets modified by removing the bits associated with the child collider.

    ChildCollider child

    [out] The child.

    Returns
    Type Description
    bool

    True if there is a child with the specified key, false otherwise.

    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)