9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
27 lines
638 B
C#
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;
|
|
}
|
|
}
|
|
}
|