Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EdgeControl

VisualElement that draws the edge lines and detects if mouse is on top of edge.
Read time 9 minutesLast updated 4 days ago

Definition

public class EdgeControl : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle

Static Fields

Value

Description

k_MinEdgeWidthMin edge width.

Constructors

Constructor

Description

EdgeControl()EdgeControl's constructor.

Properties

Property

Description

capRadiusRadius of the edge's end caps.
controlPointsEdge's control points.
drawFromCapWhether or not to draw the From Cap.
drawToCapWhether or not to draw the To Cap.
edgeWidthEdge's visible width.
fromEdge's From postion.
fromCapColorThe color of the cap color at the "from" end of the edge.
inputColorColor on the edge's input.
inputOrientationEdge input port orientation (vertical/horizontal).
interceptWidthWidth that will be used for mouse hit detection.
outputColorColor on the edge's output.
outputOrientationEdge output port orientation (vertical/horizontal).
toEdge's To postion.
toCapColorThe color of the cap color at the "to" end of the edge.

Methods

Method

Description

ComputeControlPointsCompute the edge's control points.
ContainsPointCheck if point is on top of edge.
OverlapsCheck if edge overlaps rectangle.
PointsChangedCheck if the edge points have changed.
UpdateLayoutUpdate the edge layout.
UpdateRenderPointsUpdate the edge's render points.

Inheritance

Inherited Members