docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetInteractable

    SetInteractable(bool)

    Sets the button's interactable state if the state specified is different from the current state.

    Declaration
    public void SetInteractable(bool interactable)
    Parameters
    Type Name Description
    bool interactable

    Whether the button should be enabled or not.

    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)