class in UnityEditor.Experimental.GraphView
/
继承自:Experimental.GraphView.Scope
实现接口:ICollectibleElement, IEventHandler, IExperimentalFeatures, IResolvedStyle, ISelectable, ITransform, ITransitionAnimations, IVisualElementScheduler
允许在指定范围内交互式插入元素。
| title | 组的标题。 |
| Group | Group 构造函数。 |
| AcceptsElement | 是否可以将元素添加到该组。 |
| CollectElements | Retrieves a set of graph elements that match a specified condition. The matching graph elements are selected from this group. |
| FocusTitleTextField | 聚焦此组的标题文本字段,以便可从 UI 编辑。 |
| OnElementsAdded | 将元素添加到此组时调用。 |
| OnElementsRemoved | 将从此组中删除元素时调用。 |
| OnGroupRenamed | 重命名此组时调用。 |
| capabilities | GraphElement 的功能。 |
| elementTypeColor | 用于 MiniMap 视图的颜色。 |
| layer | 图形中的 GraphElement 图层。 |
| selected | 如果当前已选择 GraphElement,则为 true。 |
| showInMiniMap | Whether the element is shown in the minimap. |
| title | GraphElement 的标题。 |
| autoUpdateGeometry | 启用或禁用作用域的自动大小调整和定位。 |
| containedElements | 此作用域包含的 GraphElements 列表。 |
| containedElementsRect | 包含此作用域中的 GraphElements 的矩形。矩形以本地坐标表示。 |
| headerContainer | 返回作用域的标头容器。使用此标头容器可以自定义作用域的标头。 |
| 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。 |
| AddElement | 将一个 GraphElement 添加到作用域。 |
| AddElements | 将多个 GraphElements 添加到作用域。 |
| ContainsElement | 确定作用域是否包含指定的 GraphElement。 |
| GetPosition | 返回作用域的几何形状。 |
| HitTest | 确定指定的点是否在作用域的可选区域内。 |
| Overlaps | 确定指定的矩形是否与作用域重叠。 |
| RemoveElement | 从作用域中删除元素。 |
| RemoveElements | 从作用域中删除多个元素。 |
| RemoveElementsWithoutNotification | 从作用域中删除元素但不发送通知。 |
| SetPosition | 设置作用域的几何形状。 |
| UpdateGeometryFromContent | 根据内容来更新作用域大小和位置。 |
| OnCustomStyleResolved | 当自定义样式属性解析时调用。 |
| ScheduleUpdateGeometryFromContent | 计划根据内容来更新作用域大小和位置。 |
| SetScopePositionOnly | 更改作用域的位置,但不移动其元素。 |