Firstborn/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.Flow/Connections/InvalidConnectionWidget.cs

29 lines
675 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using UnityEngine;
namespace Unity.VisualScripting
{
[Widget(typeof(InvalidConnection))]
public sealed class InvalidConnectionWidget : UnitConnectionWidget<InvalidConnection>
{
public InvalidConnectionWidget(FlowCanvas canvas, InvalidConnection connection) : base(canvas, connection) { }
#region Drawing
public override Color color => UnitConnectionStyles.invalidColor;
#endregion
#region Droplets
protected override bool showDroplets => false;
protected override Vector2 GetDropletSize() => Vector2.zero;
protected override void DrawDroplet(Rect position) { }
#endregion
}
}