xyi/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Editor/VisualScripting.Flow/Ports/ControlOutputWidget.cs
Vladislav 2750530006 1
2025-09-18 15:33:57 +03:00

17 lines
642 B
C#

using UnityEngine;
namespace Unity.VisualScripting
{
[Widget(typeof(ControlOutput))]
public class ControlOutputWidget : UnitOutputPortWidget<ControlOutput>
{
public ControlOutputWidget(FlowCanvas canvas, ControlOutput port) : base(canvas, port) { }
protected override Texture handleTextureConnected => BoltFlow.Icons.controlPortConnected?[12];
protected override Texture handleTextureUnconnected => BoltFlow.Icons.controlPortUnconnected?[12];
protected override bool colorIfActive => !BoltFlow.Configuration.animateControlConnections || !BoltFlow.Configuration.animateValueConnections;
}
}