class in UnityEditor.Experimental.GraphView
/
继承自:Experimental.GraphView.Node
TokenNode 类中的一些方法用于创建和管理类似于胶囊体的节点。TokenNode 类包括标题、图标、一个输入端口和一个输出端口。
| highlighted | 返回有关 TokenNode 是否突出显示的信息。 | 
| icon | TokenNode 的图标。 | 
| input | TokenNode 的输入端口。 | 
| output | TokenNode 的输出端口。 | 
| TokenNode | 构造同时具有输入和输出端口的 TokenNode。 | 
| capabilities | GraphElement 的功能。 | 
| elementTypeColor | 用于 MiniMap 视图的颜色。 | 
| layer | 图形中的 GraphElement 图层。 | 
| selected | 如果当前已选择 GraphElement,则为 true。 | 
| showInMiniMap | Whether the element is shown in the minimap. | 
| title | GraphElement 的标题。 | 
| expanded | 节点是否已扩展。 | 
| extensionContainer | 用于显示自定义元素的空容器。添加元素后,调用 RefreshExpandedState 以切换该容器的可见性。 | 
| inputContainer | 用于输入端口的输入容器。 | 
| mainContainer | 包含所有其他容器的主容器。 | 
| outputContainer | 用于输出端口的输出容器。 | 
| title | 节点的标题元素。 | 
| titleButtonContainer | 标题栏按钮容器。包含右上角按钮。 | 
| titleContainer | 标题栏容器。 | 
| topContainer | 包含输入和输出容器的整个顶部区域。 | 
| GetGlobalCenter | 获取 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。 | 
| BuildContextualMenu | 向节点上下文菜单添加菜单项。 | 
| CollectElements | Retrieves the set of edges that match a specified condition. The tested edges are connected to this node. | 
| InstantiatePort | 创建一个特定于此节点的新端口。 | 
| RefreshExpandedState | 将自定义元素添加到 extensionContainer 后,调用此方法以使这些元素变得可见。 | 
| RefreshPorts | 刷新端口布局。 | 
| SetPosition | 设置节点位置。 | 
| OnCustomStyleResolved | 当自定义样式属性解析时调用。 | 
| OnPortRemoved | 删除端口时调用。 | 
| ToggleCollapse | 切换节点的折叠状态。 | 
| UseDefaultStyling | 应用节点的默认样式。必须由使用自身 uxml 文件的 Node 子类显式调用此方法。 |