File size: 644 Bytes
18a519f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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;
}
}
|