docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property deactivated

    deactivated

    The event that is called when an Interactor deactivates this Interactable.

    Declaration
    DeactivateEvent deactivated { get; }
    Property Value
    Type Description
    DeactivateEvent
    Remarks

    Not to be confused with activating or deactivating a GameObject with SetActive(bool). This is a generic event when an Interactor wants to deactivate an Interactable, such as from a trigger release on a controller.
    The DeactivateEventArgs passed to each listener is only valid while the event is invoked, do not hold a reference to it.

    See Also
    activated
    In This Article
    Back to top
    Copyright © 2023 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)