arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Editor/VisualScripting.Flow/FlowEditorBindings.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02:00

27 lines
638 B
C#

namespace Unity.VisualScripting
{
[InitializeAfterPlugins]
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;
}
}
}