检测----物体上加3D collider-----最后相机上加 PhysicsRaycaster
public class ClickHander : MonoBehaviour, IPointerClickHandler, IEventSystemHandler
{
public void OnPointerClick(PointerEventData eventData)
{
Debug.LogError("这就点击了?");
}
}
检测----物体上加3D collider-----最后相机上加 PhysicsRaycaster
public class ClickHander : MonoBehaviour, IPointerClickHandler, IEventSystemHandler
{
public void OnPointerClick(PointerEventData eventData)
{
Debug.LogError("这就点击了?");
}
}