Skip to content

Instantly share code, notes, and snippets.

@TheStoneBook
Last active June 25, 2018 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheStoneBook/dc84296c40377967ee9386f70d131d01 to your computer and use it in GitHub Desktop.
Save TheStoneBook/dc84296c40377967ee9386f70d131d01 to your computer and use it in GitHub Desktop.
【Unity】EventSystemを使ったタッチイベントの取得
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class TouchEventTest : MonoBehaviour, IPointerDownHandler {
public void OnPointerDown(PointerEventData data){
//ここに処理を書く。
Debug.Log ("タッチしたよー!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment