class in UnityEditor.Experimental.GraphView
/
继承自:Experimental.GraphView.Node
实现接口:ICollectibleElement, IDropTarget, IEventHandler, IExperimentalFeatures, IResolvedStyle, ISelectable, ITransform, ITransitionAnimations, IVisualElementScheduler
使用此类可自定义 StackNodes 以及管理将 GraphElements 拖动到 StackNodes 上的操作。
| contentContainer | 此 StackNode 的内容容器。 | 
| dragEntered | 指示当前是否正在拖动此堆栈中的项。 | 
| dropPreviewTemplate | 使用此属性可自定义在将 GraphElements 拖动到 StackNode 上时显示的预览。 | 
| hasMultipleSelectionSupport | 如果 StackNode 支持多重选择,则返回 true。 | 
| headerContainer | 使用此属性可自定义此 StackNode 的标头。 | 
| StackNode | StackNode 构造函数。 | 
| AddElement | 将指定的 GraphElement 添加到 StackNode。 | 
| CanAcceptDrop | 指示此 StackNode 是否接受当前的放置事件。 | 
| CollectElements | Retrieves the set of nodes contained in this stack and its edges. The retrieved graph elements match a specific condition. | 
| DragEnter | 当发生拖动离开事件时,将自动调用此方法。 | 
| DragExited | 当发生拖动退出事件时,将自动调用此方法。 | 
| DragLeave | 当发生拖动离开事件时,将自动调用此方法。 | 
| DragPerform | 当发生放置事件时,将自动调用此方法。 | 
| DragUpdated | 当发生拖动更新事件时,将自动调用此方法。 | 
| GetInsertionIndex | 如果将某一项放置在指定的世界位置,则在 StackNode 中检索插入索引。 | 
| InsertElement | 将指定的 GraphElement 插入到此 StackNode 中的指定索引处。 | 
| OnStartDragging | 当堆栈的一个元素即将被拖出时,将自动调用此方法。 | 
| RemoveElement | 从此 StackNode 中删除指定的 GraphElement。 | 
| AcceptsElement | 检查是否可以将指定的 GraphElement 添加到此 StackNode。 | 
| OnCustomStyleResolved | 当自定义样式属性解析时调用。 | 
| OnSeparatorContextualMenuEvent | 当上下文菜单即将出现在 StackNode 分隔条上时,将自动调用此方法。 | 
| 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 | 向节点上下文菜单添加菜单项。 | 
| InstantiatePort | 创建一个特定于此节点的新端口。 | 
| RefreshExpandedState | 将自定义元素添加到 extensionContainer 后,调用此方法以使这些元素变得可见。 | 
| RefreshPorts | 刷新端口布局。 | 
| SetPosition | 设置节点位置。 | 
| OnPortRemoved | 删除端口时调用。 | 
| ToggleCollapse | 切换节点的折叠状态。 | 
| UseDefaultStyling | 应用节点的默认样式。必须由使用自身 uxml 文件的 Node 子类显式调用此方法。 |