SquareDash/Library/PackageCache/com.unity.visualscripting@1.9.1/Editor/VisualScripting.Flow/FlowDragAndDropUtility.cs
kingjuulian06 0efb85038a Arbeit 2
2023-11-21 22:03:49 +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;
}
}
}