Drag using System.Collections; using System.Collections.Generic; using UnityEngine; public class Drag : MonoBehaviour { private Transform _trans;// 目标物体的空间变换组件 private Vector3 _vec3TargetScreenSpace;// 目标物体的屏幕空间坐标 private Vector3 _vec3TargetWorldSpac
以自定义ImageView为例: /** * 可拖拽ImageView * Created by admin on 2017/2/21. */ public class FloatingImageView extends ImageView{ public FloatingImageView(Context context) { super(context); } public FloatingImageView(Context context, AttributeSet attrs) { su