一我们添加sprite,给sprite添加背景图片和添加box collider,但是drag and drop item在attach中是找不到的只能在add component中查找添加,如下图: 这时生成一个这样的脚本 二,现在只能识别拖的功能,我们该怎么监听放下的功能呢? 1>我们添加一个脚本MayDragDropItem继承UIDragDropItem,将当前这个自动生成的删除,如下图: using UnityEngine; using System.Collections; publ…