docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDeselectHandler

    Interface to implement if you wish to receive OnDeselect callbacks.

    Namespace: UnityEngine.EventSystems
    Assembly: UnityEngine.UI.dll
    Syntax
    public interface IDeselectHandler : IEventSystemHandler
    Remarks

    Criteria for this event is implementation dependent. For example see StandAloneInputModule.

    Methods

    OnDeselect(BaseEventData)

    Called by the EventSystem when this object is being deselected.

    Declaration
    void OnDeselect(BaseEventData eventData)
    Parameters
    Type Name Description
    BaseEventData eventData

    The event data for the deselection.

    In This Article
    Back to top
    Copyright © 2026 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)