Singularity/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.Flow/Ports/ControlInputWidget.cs

18 lines
644 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using UnityEngine;
namespace Unity.VisualScripting
{
[Widget(typeof(ControlInput))]
public class
ControlInputWidget : UnitInputPortWidget<ControlInput>
{
public ControlInputWidget(FlowCanvas canvas, ControlInput 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;
}
}