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

Edge

class in UnityEditor.Experimental.GraphView

/

継承:Experimental.GraphView.GraphElement

マニュアルに切り替える

説明

The GraphView edge element.

変数

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.

コンストラクタ

EdgeEdge's constructor.

Public 関数

ContainsPointChecks if point is on top of edge.
OnPortChangedCalled when a port on the edge is changed.
OverlapsCheck if edge overlaps rectangle.
UpdateEdgeControlUpdate the edge's EdgeControl.

Protected 関数

CreateEdgeControlCreate the EdgeControl.
DrawEdgeDraw the edge's lines.
OnCustomStyleResolvedCalled when the custom style properties are resolved.

継承メンバー

変数

capabilitiesThe GraphElement's capabilities.
elementTypeColorThe color used for the MiniMap view.
layerThe GraphElement's layer in the graph.
selectedTrue if the GraphElement is currently selected.
showInMiniMapWhether the element is shown in the minimap.
titleThe GraphElement's title.

Public 関数

GetGlobalCenterGet the GraphElement's center point.
GetPositionGet the GraphElement position.
HitTestSee if point is over the GraphElement.
IsAscendableChecks if the GraphElement is automatically brought to front when selected.
IsCopiableChecks whether the GraphElement is copiable.
IsDroppableThe GraphElement is drag&droppable.
IsGroupableChecks whether the GraphElement is groupable.
IsMovableThe GraphElement is movable.
IsRenamableThe GraphElement is renamable.
IsResizableThe GraphElement is resizable.
IsSelectableThe GraphElement is selectable.
IsSelectedThe GraphElement is currently selected in specific container.
IsSnappableChecks whether the GraphElement is snappable.
IsStackableChecks whether the GraphElement is stackable.
OnSelectedCalled when the GraphElement is selected.
OnUnselectedCalled when the GraphElement is unselected.
ResetLayerReset the GraphElement to its original layer.
SelectSelect the GraphElement.
SetPositionSet the GraphElement position.
UnselectDeselect the GraphElement.