Files
GameDevTVObstacleDodge/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Editor/VisualScripting.Flow/FlowDragAndDropUtility.cs

14 lines
348 B
C#
Raw Normal View History

2026-01-08 16:50:20 +00:00
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;
}
}
}