using UnityEngine;
Using UnityEngine. EventSystems;
Using UnityEngine. UI;
[RequireComponent (typeof (Image)))
Public class LightingOnList: MonoBehaviour, IBeginDragHandler IDragHandler, IEndDragHandler
{
Public bool dragOnSurfaces=true;
Private GameObject m_DraggingIcon;
Private RectTransform m_DraggingPlane;
Public GameObject prefab.
Public void OnBeginDrag (PointerEventData eventData)
{
The Debug. LogError (" OnBeginDrag ");
Var canvas=FindInParents