暫無描述
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.

FlowDragAndDropUtility.cs 348B

12345678910111213
  1. using UnityEditor;
  2. namespace Unity.VisualScripting
  3. {
  4. public static class FlowDragAndDropUtility
  5. {
  6. public static bool AcceptsScript(IGraph graph)
  7. {
  8. // Can't drag a graph into itself
  9. return DragAndDrop.objectReferences[0] is ScriptGraphAsset graphAsset && graph != graphAsset.graph;
  10. }
  11. }
  12. }