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