Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Edge

The GraphView edge element.
Read time 10 minutesLast updated 4 days ago

Definition

public class Edge : GraphElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable

Constructors

Constructor

Description

Edge()Edge's constructor.

Properties

Property

Description

candidatePositionThe edge's end position while it's being created.
defaultColorDefault edge color.
edgeControlThe VisualElement child of Edge that draws the lines and does the hit detection.
edgeWidthEdge width.
ghostColorThe color of the ghost edge, which is the edge that appears snapped to a nearby port while an edge is being created.
inputConnected input port.
isGhostEdgeIs this edge a ghost edge, which is the edge that appears snapped to a nearby port while an edge is being created.
outputConnected output port.
PointsAndTangentsThe edge's points and tangents.
selectedColorColor of edge while selected.
showInMiniMapWhether the GraphElement is shown in the minimap. For Edge, this property is always set to false.

Methods

Method

Description

ContainsPointChecks if point is on top of edge.
CreateEdgeControlCreate the EdgeControl.
DrawEdgeDraw the edge's lines.
OnCustomStyleResolvedCalled when the custom style properties are resolved.
OnPortChangedCalled when a port on the edge is changed.
OverlapsCheck if edge overlaps rectangle.
UpdateEdgeControlUpdate the edge's EdgeControl.

Inheritance

Inherited Members