docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property activated

    activated

    The event that is called when the selecting Interactor activates this Interactable.

    Declaration
    ActivateEvent activated { get; }
    Property Value
    Type Description
    ActivateEvent
    Remarks

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

    See Also
    deactivated
    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)