Version: 2022.1
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

EdgeControl

class in UnityEditor.Experimental.GraphView

マニュアルに切り替える

説明

VisualElement that draws the edge lines and detects if mouse is on top of edge.

Static 変数

k_MinEdgeWidthMin edge width.

変数

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.

コンストラクタ

EdgeControlEdgeControl's constructor.

Public 関数

ContainsPointCheck if point is on top of edge.
OverlapsCheck if edge overlaps rectangle.
UpdateLayoutUpdate the edge layout.

Protected 関数

ComputeControlPointsCompute the edge's control points.
PointsChangedCheck if the edge points have changed.
UpdateRenderPointsUpdate the edge's render points.