コンテンツがドラッグされ始めたときの操作。
using UnityEngine; using System.Collections; using UnityEngine.EventSystems; // Required when using event data
public class ExampleClass : MonoBehaviour, IBeginDragHandler // required interface when using the OnBeginDrag method. { //Do this when the user starts dragging the element this script is attached to.. public void OnBeginDrag(PointerEventData data) { Debug.Log("They started dragging " + this.name); } }