Version: 5.4
public void OnBeginDrag (EventSystems.PointerEventData eventData);

説明

コンテンツがドラッグされ始めたときの操作。

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