9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
14 lines
348 B
C#
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;
|
|
}
|
|
}
|
|
}
|