Version: 2022.3
Experimental: this API is experimental and might be changed or removed in the future.

Group

class in UnityEditor.Experimental.GraphView

/

继承自:Experimental.GraphView.Scope


实现接口:ICollectibleElement, IEventHandler, IExperimentalFeatures, IResolvedStyle, ISelectable, ITransform, ITransitionAnimations, IVisualElementScheduler

切换到手册

描述

允许在指定范围内交互式插入元素。

变量

title组的标题。

构造函数

GroupGroup 构造函数。

公共函数

AcceptsElement是否可以将元素添加到该组。
CollectElementsRetrieves a set of graph elements that match a specified condition. The matching graph elements are selected from this group.
FocusTitleTextField聚焦此组的标题文本字段,以便可从 UI 编辑。

受保护的函数

OnElementsAdded将元素添加到此组时调用。
OnElementsRemoved将从此组中删除元素时调用。
OnGroupRenamed重命名此组时调用。

继承的成员

变量

capabilitiesGraphElement 的功能。
elementTypeColor用于 MiniMap 视图的颜色。
layer图形中的 GraphElement 图层。
selected如果当前已选择 GraphElement,则为 true。
showInMiniMapWhether the element is shown in the minimap.
titleGraphElement 的标题。
autoUpdateGeometry启用或禁用作用域的自动大小调整和定位。
containedElements此作用域包含的 GraphElements 列表。
containedElementsRect包含此作用域中的 GraphElements 的矩形。矩形以本地坐标表示。
headerContainer返回作用域的标头容器。使用此标头容器可以自定义作用域的标头。

公共函数

GetGlobalCenter获取 GraphElement 的中心点。
GetPosition获取 GraphElement 定位。
HitTest查看点是否在 GraphElement 之上。
IsAscendable检查 GraphElement 被选中时是否会被自动带到前面。
IsCopiableChecks whether the GraphElement is copiable.
IsDroppableGraphElement 可拖放。
IsGroupableChecks whether the GraphElement is groupable.
IsMovableGraphElement 可以移动。
IsRenamableGraphElement 可以重命名。
IsResizableGraphElement 可以重新确定大小。
IsSelectableGraphElement 是可选择的。
IsSelected当前已在特定容器中选择 GraphElement。
IsSnappableChecks whether the GraphElement is snappable.
IsStackableChecks 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更改作用域的位置,但不移动其元素。