docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsActiveAndEnabled

    IsActiveAndEnabled()

    Checks if the GameObject is active and enabled.

    Declaration
    public bool IsActiveAndEnabled()
    Returns
    Type Description
    bool

    Returns true if the GameObject is active and enabled.

    Remarks

    This takes a dependency on the active and enable state

    IsActiveAndEnabled(Component)

    Checks if the GameObject is active and enabled for a given component.

    Declaration
    public bool IsActiveAndEnabled(Component component)
    Parameters
    Type Name Description
    Component component

    The Object to check.

    Returns
    Type Description
    bool

    Returns true if the GameObject is active and enabled.

    Remarks

    This takes a dependency on the active and enable state.

    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)