Skip to content

Instantly share code, notes, and snippets.

@AlexandreBonaventure
Created October 11, 2016 21:19
Show Gist options
  • Save AlexandreBonaventure/c86255d73d398e3f3f91050651881d96 to your computer and use it in GitHub Desktop.
Save AlexandreBonaventure/c86255d73d398e3f3f91050651881d96 to your computer and use it in GitHub Desktop.
Unity
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class SetupPointerInterface : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("Pointer Enter");
}
public void OnPointerExit(PointerEventData eventData)
{
Debug.Log("Pointer Exit");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment