Advertisement
MatthijsFontys

Unity custom event handler

Dec 13th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5.  
  6. public class InputBoxOnClick : MonoBehaviour, IPointerClickHandler {
  7.     public void OnPointerClick(PointerEventData eventData) {
  8.         Debug.Log("I got clicked");
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement