首先得加上EventSystem 事件系统 然后再在相机上加上Physics Racaster组件 在相关的脚本上重写需要的事件(注意需要引用using UnityEngine.EventSystems; ) 这类事件有很多 https://docs.unity3d.com/ScriptReference/EventSystems.IDropHandler.html