Inheritance
UnitConnectionWidget<TConnection>
public abstract class UnitConnectionWidget<TConnection> : GraphElementWidget<FlowCanvas, TConnection>, IUnitConnectionWidget, IGraphElementWidget, IWidget, IDisposable where TConnection : class, IUnitConnection
Type Parameters
Name |
Description |
TConnection |
|
Constructors
Declaration
protected UnitConnectionWidget(FlowCanvas canvas, TConnection connection)
Parameters
Type |
Name |
Description |
FlowCanvas |
canvas |
|
TConnection |
connection |
|
Fields
Declaration
public Vector2 middlePosition
Field Value
Properties
Declaration
public override bool canDelete { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TConnection>.canDelete
Implements
Declaration
public override bool canDrag { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TConnection>.canDrag
Implements
Declaration
public override bool canSelect { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TConnection>.canSelect
Implements
Declaration
public override Rect clippingPosition { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.clippingPosition
Implements
Declaration
public abstract Color color { get; }
Property Value
Implements
Declaration
protected virtual bool colorIfActive { get; }
Property Value
Declaration
protected TConnection connection { get; }
Property Value
Type |
Description |
TConnection |
|
Declaration
protected IUnitConnectionDebugData ConnectionDebugData { get; }
Property Value
Declaration
public Vector2 destinationHandleEdgeCenter { get; }
Property Value
Declaration
public Rect destinationHandlePosition { get; }
Property Value
Declaration
protected override bool dim { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.dim
Declaration
public override Rect position { get; set; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.position
Implements
Declaration
public override IEnumerable<IWidget> positionDependencies { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.positionDependencies
Implements
Declaration
protected virtual bool showDroplets { get; }
Property Value
Declaration
protected override bool snapToGrid { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.snapToGrid
Declaration
public Vector2 sourceHandleEdgeCenter { get; }
Property Value
Declaration
public Rect sourceHandlePosition { get; }
Property Value
Methods
Declaration
public override void BeforeFrame()
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TConnection>.BeforeFrame()
Implements
Declaration
public override void CachePosition()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.CachePosition()
Implements
Declaration
public override void DrawBackground()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TConnection>.DrawBackground()
Implements
Declaration
protected virtual void DrawConnection()
Declaration
protected abstract void DrawDroplet(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
Declaration
protected virtual void DrawDroplets()
Declaration
protected abstract Vector2 GetDropletSize()
Returns
Extension Methods