Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using UnityEngine;
using UnityEngine.EventSystems;
public class ControllerUI : MonoBehaviour,IBeginDragHandler,IDragHandler,IEndDragHandler
public void OnBeginDrag(PointerEventData eventData){
     // ドラックが開始したとき
public void OnDrag(PointerEventData eventData){
     // ドラック中の処理
transform.position = eventData.position;
public void OnEndDrag(PointerEventData eventData){
    // ドラックが終了したときの処理
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.