You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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