You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
348 B
13 lines
348 B
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;
|
|
}
|
|
}
|
|
}
|
|
|