public void OnDeselect (EventSystems.BaseEventData eventData);

Parameters

eventData通常由 EventSystem 发送的 eventData。

Description

撤消选择并过渡到适当状态。

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;// Required when using Event data.

public class ExampleClass : MonoBehaviour, IDeselectHandler //This Interface is required to receive OnDeselect callbacks. { public void OnDeselect(BaseEventData data) { Debug.Log("Deselected"); } }