Version: 2017.1
public void OnDeselect (EventSystems.BaseEventData eventData);

Parámetros

eventData The eventData usually sent by the EventSystem.

Descripción

Unset selection and transition to appropriate state.

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"); } }