File size: 348 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using UnityEditor;

namespace Unity.VisualScripting
{
    public static class FlowDragAndDropUtility
    {
        public static bool AcceptsScript(IGraph graph)
        {
            // Can't drag a graph into itself
            return DragAndDrop.objectReferences[0] is ScriptGraphAsset graphAsset && graph != graphAsset.graph;
        }
    }
}