docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetChildGameObjects

    GetChildGameObjects(GameObject, List<GameObject>)

    Get the direct children GameObjects of this GameObject.

    Declaration
    public static void GetChildGameObjects(this GameObject go, List<GameObject> childGameObjects)
    Parameters
    Type Name Description
    GameObject go

    The parent GameObject that we will want to get the child GameObjects on.

    List<GameObject> childGameObjects

    The direct children of a GameObject.

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