class in UnityEditor.Experimental.UIElements.GraphView
/
继承自:Experimental.UIElements.GraphView.Scope
切换到手册Allows interactive insertion of elements in a named scope.
| title | 组的标题。 |
| Group | Group constructor. |
| AcceptsElement | Whether an element can be added to this group. |
| OnElementsAdded | Called when elements are added to this group. |
| OnElementsRemoved | Called when elements are removed from this group. |
| OnGroupRenamed | Called when this group is renamed. |
| defaultFocusIndex | The default focus index for newly created elements. |
| canGrabFocus | 如果元素可以获得焦点,则返回 true。 |
| focusController | 返回此元素的焦点控制器。 |
| focusIndex | 用于对焦点环中可获得焦点的元素排序的整数。负值表示元素不能获得焦点。 |
| capabilities | The GraphElement's capabilities. |
| elementTypeColor | The color used for the MiniMap view. |
| layer | The GraphElement's layer in the graph. |
| selected | True if the GraphElement is currently selected. |
| title | The GraphElement's title. |
| autoUpdateGeometry | Enables or disables the automatic resizing and positioning of the Scope. |
| containedElements | The list of GraphElements contained by the Scope. |
| containedElementsRect | The rect containing the GraphElements encompassed by the Scope. The rect is expressed in local coordinates. |
| headerContainer | Returns the header container for the Scope. Use this header container to customizer the header of the Scope. |
| childCount | 此对象的 contentContainer 中的子元素数 |
| clippingOptions | 是否应将此元素裁剪为绘制到其边界。 |
| contentContainer | 子元素通常添加到此元素中 |
| dataWatch | 对此元素 DataWatch 接口的访问。 |
| enabledInHierarchy | 如果 VisualElement 是在它自己的层级视图中启用,则返回 true。 |
| enabledSelf | 如果 VisualElement 是本地启用,则返回 true。 |
| persistenceKey | 用于查看数据持久性(即树展开状态、滚动位置、缩放级别)。 |
| schedule | 检索此 VisualElement 的 IVisualElementScheduler |
| shadow | 访问此元素物理层级视图 |
| style | 引用此元素的样式对象。 |
| this[int] | 访问此元素物理层级视图 |
| tooltip | Text to display inside an information box after the user hovers the element for a small amount of time. |
| userData | 此属性可用于将特定于应用程序的用户数据与此 VisualElement 关联。 |
| HandleEvent | 处理事件,通常是通过执行与事件关联的回调处理事件。 |
| HasBubbleUpHandlers | Return true if event handlers for the event propagation BubbleUp phase have been attached on this object. |
| HasTrickleDownHandlers | Returns true if event handlers, for the event propagation TrickleDown phase, are attached to this object. |
| RegisterCallback | Adds an event handler to the instance. If the event handler has already been registered for the same phase (either TrickleDown or BubbleUp) then this method has no effect. |
| SendEvent | Sends an event to the event handler. |
| UnregisterCallback | 从此实例删除回调。 |
| Blur | 通知元素释放焦点。 |
| Focus | 尝试让此元素获得焦点。 |
| GetGlobalCenter | Get the GraphElement's center point. |
| GetPosition | Get the GraphElement position. |
| HitTest | See if point is over the GraphElement. |
| IsAscendable | Checks if the GraphElement is automatically brought to front when selected. |
| IsDroppable | The GraphElement is drag&droppable. |
| IsMovable | The GraphElement is movable. |
| IsResizable | The GraphElement is resizable. |
| IsSelectable | The GraphElement is selectable. |
| IsSelected | The GraphElement is currently selected in specific container. |
| OnSelected | Called when the GraphElement is selected. |
| OnUnselected | Called when the GraphElement is unselected. |
| ResetLayer | Reset the GraphElement to its original layer. |
| Select | Select the GraphElement. |
| SetPosition | Set the GraphElement position. |
| Unselect | Deselect the GraphElement. |
| AddElement | Adds a GraphElement to the Scope. |
| AddElements | Adds GraphElements to the Scope. |
| ContainsElement | Determines if the Scope contains the specified GraphElement. |
| GetPosition | Returns the geometry of the Scope. |
| HitTest | Determines whether the specified point is within the selectable area of the Scope. |
| Overlaps | Determines whether the specified rect overlaps the Scope. |
| RemoveElement | Removes an element from the Scope. |
| RemoveElements | Removes elements from the Scope. |
| RemoveElementsWithoutNotification | Removes elements from the Scope but do not send a notification. |
| SetPosition | Sets the geometry of the Scope. |
| UpdateGeometryFromContent | Updates the size and position of the Scope based on its contents. |
| Add | 向此元素的 contentContainer 添加一个元素 |
| AddStyleSheetPath | 将此样式表文件添加到此元素的应用样式列表中 |
| BringToFront | 将此元素放到其父子列表的末尾。此元素将显示在所有重叠的同级元素前方。 |
| Children | 从元素的 contentContainer 返回元素 |
| Clear | 从此元素的 contentContainer 中删除所有子元素 |
| Contains | 如果元素是此 VisualElement 的直接子级,则返回 true |
| ElementAt | 检索相应位置的子元素 |
| EnableInClassList | Enables or disables the class with the given name. |
| FindAncestorUserData | 向上搜索此 VisualElement 的层级视图并检索存储的 userData(如果找到)。 |
| FindCommonAncestor | 查找 VisualTree 层级视图中两个 VisualElement 之间的最低共同上级 |
| GetEnumerator | 允许循环访问此元素的子级 |
| GetFirstAncestorOfType | 从此元素的父级开始向上访问层级视图,返回第一个此类型的 VisualElement |
| GetFirstOfType | 从此元素开始向上访问层级视图,返回第一个此类型的 VisualElement |
| GetFullHierarchicalPersistenceKey | 将此 VisualElement 与其父级的 VisualElement.persistenceKey 进行组合,从而创建更具唯一性的键以供 VisualElement.GetOrCreatePersistentData 使用。 |
| GetOrCreatePersistentData | 引用现有的持久化对象和键,返回以保持的状态填充的对象或原样返回对象。 |
| HasStyleSheetPath | 检查此样式表文件是否位于此元素的应用样式列表中 |
| IndexOf | Retrieves the child index of the specified VisualElement. |
| Insert | 向此元素的 contentContainer 插入一个元素 |
| MarkDirtyRepaint | Triggers a repaint of the VisualElement on the next frame. |
| OnPersistentDataReady | 当持久数据可访问和/或当数据或持久键发生更改时调用(VisualElement 有正确的父子关系)。 |
| OverwriteFromPersistedData | 从持久性数据存储覆盖对象。 |
| PlaceBehind | 将此元素放在其父子列表中同级元素之前紧邻的位置。如果此元素和同级元素位置重叠,此元素将显示在其同级元素之后。 |
| PlaceInFront | 将此元素放在其父子列表中同级元素之后紧邻的位置。如果此元素和同级元素位置重叠,此元素将显示在其同级元素之前。 |
| Remove | 从层级视图中删除此子级 |
| RemoveAt | 从此元素的 contentContainer 中删除位于此位置的子元素 |
| RemoveFromHierarchy | 将此元素从其父层级视图中删除 |
| RemoveStyleSheetPath | 从此元素的应用样式列表中删除此样式表文件 |
| SavePersistentData | 将持久性数据写入文件。 |
| SendEvent | Sends an event to the event handler. |
| SendToBack | 将此元素发送到其父子列表的开始处。此元素将显示在所有重叠的同级元素之后。 |
| SetEnabled | Changes whether the current VisualElement is enabled or not. When disabled, a VisualElement does not receive most events. |
| Sort | 重新排序来自此 VisualElement contentContainer 的子元素。 |
| ToggleInClassList | Toggles between adding and removing the given class name from the class list. |
| ScheduleUpdateGeometryFromContent | Schedules the update of the size and position of the Scope based on its contents. |
| SetScopePositionOnly | Change the position of the scope but does not move its elements. |
| OnStyleResolved | 当对象样式发生更改时回调。 |