class in UnityEditor.Experimental.GraphView
/
继承自:Experimental.GraphView.GraphElement
GraphView 端口类。
allowMultiDrag | When this property is set to true, you can select multiple edges connected to this port, and drag them all at the same time (for example, to disconnect them and reconnect them to another port). When this property is set to false, you can only drag one connected edge at a time. |
capacity | 指定一个端口可以连接的边缘数。 |
collapsed | 端口的折叠状态。 |
connected | 端口的连接状态。 |
connections | 所有端口的当前连接。 |
direction | 端口方向。 |
disabledPortColor | 禁用时端口的颜色。 |
edgeConnector | 引用边缘连接器。 |
highlight | 突出显示端口。 |
node | 端口节点。 |
orientation | 端口定向。 |
portCapLit | 端口盖是否点亮。 |
portColor | 端口颜色。 |
portName | 端口名称。 |
portType | 端口类型。 |
showInMiniMap | Whether the element is shown in the minimap. For Port, this property is always set to false. |
source | 端口源。 |
visualClass | 用于样式化端口的 USS 类的名称。 |
Connect | 端口的连接和边缘。 |
ConnectTo | 在此端口和另一个 (other) 端口之间创建边缘。 |
ContainsPoint | 检查点是否在端口之上。用于选择和悬停。 |
Disconnect | 断开边缘与端口的连接。 |
DisconnectAll | 断开所有边缘与端口的连接。 |
GetGlobalCenter | 获取端口中心。 |
OnStartEdgeDragging | 在拖动边缘时调用。 |
OnStopEdgeDragging | 在边缘拖动结束时调用。 |
OnCustomStyleResolved | 当自定义样式属性解析时调用。 |
Create | 创建端口的工厂方法。 |
capabilities | GraphElement 的功能。 |
elementTypeColor | 用于 MiniMap 视图的颜色。 |
layer | 图形中的 GraphElement 图层。 |
selected | 如果当前已选择 GraphElement,则为 true。 |
showInMiniMap | Whether the element is shown in the minimap. |
title | GraphElement 的标题。 |
GetPosition | 获取 GraphElement 定位。 |
HitTest | 查看点是否在 GraphElement 之上。 |
IsAscendable | 检查 GraphElement 被选中时是否会被自动带到前面。 |
IsCopiable | Checks whether the GraphElement is copiable. |
IsDroppable | GraphElement 可拖放。 |
IsGroupable | Checks whether the GraphElement is groupable. |
IsMovable | GraphElement 可以移动。 |
IsRenamable | GraphElement 可以重命名。 |
IsResizable | GraphElement 可以重新确定大小。 |
IsSelectable | GraphElement 是可选择的。 |
IsSelected | 当前已在特定容器中选择 GraphElement。 |
IsSnappable | Checks whether the GraphElement is snappable. |
IsStackable | Checks whether the GraphElement is stackable. |
OnSelected | 在选择 GraphElement 时调用。 |
OnUnselected | 在取消选择 GraphElement 时调用。 |
ResetLayer | 将 GraphElement 重置为其原始图层。 |
Select | 选择 GraphElement。 |
SetPosition | 设置 GraphElement 定位。 |
Unselect | 取消选择 GraphElement。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.