docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Get Child At

    Return the child GameObject from the GameObject parent input at the given index position. If the child index doesn't exist, Null will be returned.

    Tip: Index 0 represent the first child. Warning: The children order may change when going in play mode.

    Ports

    Inputs

    Port Name Type Default Value Description
    [GameObject] Parent GameObject used to get the child.
    [Integer] The integer number representing the position of the GameObject you want to get from the parent GameObject. 0 is the first child.

    Outputs

    Port Name Type Default Value Description
    [GameObject] Return the child found at the given index number. Return Null if nothing is found at the given index.
    In This Article
    • Ports
      • Inputs
      • Outputs
    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)