Files
RPGBook/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Editor/VisualScripting.Flow/FlowDragAndDropUtility.cs
SHOUTING_PIRATE f5928e04c4 intial commit
2025-07-21 17:10:16 +01:00

14 lines
348 B
C#

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;
}
}
}