docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetParents

    GetParents()

    Returns the parents of the GameObject

    Declaration
    public GameObject[] GetParents()
    Returns
    Type Description
    GameObject[]

    The parents of the GameObject

    Remarks

    This will take a dependency on the parents

    GetParents(Component)

    Returns the parents of the GameObject

    Declaration
    public GameObject[] GetParents(Component component)
    Parameters
    Type Name Description
    Component component

    The Object to get the parents from

    Returns
    Type Description
    GameObject[]

    The parents of the GameObject

    Remarks

    This will take a dependency on the parents

    GetParents(GameObject)

    Returns the parents of the GameObject

    Declaration
    public GameObject[] GetParents(GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject to get the parents from

    Returns
    Type Description
    GameObject[]

    The parents of the GameObject

    Remarks

    This will take a dependency on the parents

    GetParents(List<GameObject>)

    Returns the parents of the GameObject

    Declaration
    public void GetParents(List<GameObject> parents)
    Parameters
    Type Name Description
    List<GameObject> parents

    The parents of the GameObject

    Remarks

    This will take a dependency on the parents

    GetParents(Component, List<GameObject>)

    Returns the parents of the GameObject

    Declaration
    public void GetParents(Component component, List<GameObject> parents)
    Parameters
    Type Name Description
    Component component

    The Object to get the parents from

    List<GameObject> parents

    The parents of the GameObject

    Remarks

    This will take a dependency on the parents

    GetParents(GameObject, List<GameObject>)

    Returns the parents of the GameObject

    Declaration
    public void GetParents(GameObject gameObject, List<GameObject> parents)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject to get the parents from

    List<GameObject> parents

    The parents of the GameObject

    Remarks

    This will take a dependency on the parents

    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)