Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Editor /VisualScripting.Flow /FlowEditorBindings.cs
| namespace Unity.VisualScripting | |
| { | |
| [] | |
| public static class FlowEditorBindings | |
| { | |
| static FlowEditorBindings() | |
| { | |
| Flow.isInspectedBinding = IsInspected; | |
| } | |
| private static bool IsInspected(GraphPointer pointer) | |
| { | |
| Ensure.That(nameof(pointer)).IsNotNull(pointer); | |
| foreach (var graphWindow in GraphWindow.tabsNoAlloc) | |
| { | |
| if (graphWindow.reference?.InstanceEquals(pointer) ?? false) | |
| { | |
| return true; | |
| } | |
| } | |
| return false; | |
| } | |
| } | |
| } | |