docs.unity.cn
    Show / Hide Table of Contents

    Interface IUpdateSelectedHandler

    Interface to implement if you wish to receive OnUpdateSelected callbacks.

    Namespace: UnityEngine.EventSystems
    Syntax
    public interface IUpdateSelectedHandler : IEventSystemHandler
    Remarks

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

    Methods

    OnUpdateSelected(BaseEventData)

    Called by the EventSystem when the object associated with this EventTrigger is updated.

    Declaration
    void OnUpdateSelected(BaseEventData eventData)
    Parameters
    Type Name Description
    BaseEventData eventData
    Examples
    using UnityEngine;
    using UnityEngine.EventSystems;
    
    public class UpdateSelectedExample : MonoBehaviour, IUpdateSelectedHandler
    {
        public void OnUpdateSelected(BaseEventData data)
        {
            Debug.Log("OnUpdateSelected called.");
        }
    }
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023