Пример #1
0
 protected override void OnPointerExitOverride(PointerEventData eventData)
 {
     base.OnPointerExitOverride(eventData);
     if (RuntimeTools.SpawnPrefab != null)
     {
         m_treeView.ExternalItemDrop();
     }
 }
        protected virtual void OnDragLeave(PointerEventData pointerEventData)
        {
            if (IsFilterEmpty)
            {
                m_treeView.ExternalItemDrop();
            }

            Editor.DragDrop.SetCursor(KnownCursor.DropNotAllowed);
        }
Пример #3
0
        public ProjectItem BeginDropProjectItem()
        {
            ProjectItem dropTarget = null;

            if (m_dragProjectItem != null)
            {
                if (m_treeView.DropAction == ItemDropAction.SetLastChild)
                {
                    dropTarget = (ProjectItem)m_treeView.DropTarget;
                }

                if (RuntimeEditorApplication.IsPointerOverWindow(RuntimeWindowType.ProjectTree))
                {
                    RuntimeTools.SpawnPrefab = null;
                }
            }
            m_treeView.ExternalItemDrop();
            m_dragProjectItem = null;

            return(dropTarget);
        }
Пример #4
0
 public override void DragLeave(PointerEventData pointerEventData)
 {
     base.DragLeave(pointerEventData);
     m_treeView.ExternalItemDrop();
     Editor.DragDrop.SetCursor(KnownCursor.DropNotAllowed);
 }
Пример #5
0
 protected virtual void OnDragLeave(PointerEventData pointerEventData)
 {
     m_listBox.ExternalItemDrop();
     Editor.DragDrop.SetCursor(KnownCursor.DropNotAllowed);
 }