설명 없음
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.

FlowEditorBindings.cs 638B

1234567891011121314151617181920212223242526
  1. namespace Unity.VisualScripting
  2. {
  3. [InitializeAfterPlugins]
  4. public static class FlowEditorBindings
  5. {
  6. static FlowEditorBindings()
  7. {
  8. Flow.isInspectedBinding = IsInspected;
  9. }
  10. private static bool IsInspected(GraphPointer pointer)
  11. {
  12. Ensure.That(nameof(pointer)).IsNotNull(pointer);
  13. foreach (var graphWindow in GraphWindow.tabsNoAlloc)
  14. {
  15. if (graphWindow.reference?.InstanceEquals(pointer) ?? false)
  16. {
  17. return true;
  18. }
  19. }
  20. return false;
  21. }
  22. }
  23. }