暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }