docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveControl

    RemoveControl(GameObject)

    Removes the passed in component from the control panel. Returns false if the element does not exist. Returns true on a successful removal. The caller is responsible for destroying the control.

    Declaration
    public bool RemoveControl(GameObject uiControl)
    Parameters
    Type Name Description
    GameObject uiControl

    The control that needs to be removed from the panel

    Returns
    Type Description
    bool

    True if the control could be removed, false if there was an issue removing the control

    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)