Version: 2023.1
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

Scope

class in UnityEditor.Experimental.GraphView

/

継承:Experimental.GraphView.GraphElement

マニュアルに切り替える

説明

This class allows for nodes to be grouped into a common area, or Scope. This class includes methods that automatically resize and position the Scope to encompass the group of nodes.

変数

autoUpdateGeometryEnables or disables the automatic resizing and positioning of the Scope.
containedElementsThe list of GraphElements contained by the Scope.
containedElementsRectThe rect containing the GraphElements encompassed by the Scope. The rect is expressed in local coordinates.
headerContainerReturns the header container for the Scope. Use this header container to customizer the header of the Scope.

コンストラクタ

ScopeScope constructor.

Public 関数

AcceptsElementWhether the GraphElement can be added to this scope.
AddElementAdds a GraphElement to the Scope.
AddElementsAdds GraphElements to the Scope.
ContainsElementDetermines if the Scope contains the specified GraphElement.
GetPositionReturns the geometry of the Scope.
HitTestDetermines whether the specified point is within the selectable area of the Scope.
OverlapsDetermines whether the specified rect overlaps the Scope.
RemoveElementRemoves an element from the Scope.
RemoveElementsRemoves elements from the Scope.
RemoveElementsWithoutNotificationRemoves elements from the Scope but do not send a notification.
SetPositionSets the geometry of the Scope.
UpdateGeometryFromContentUpdates the size and position of the Scope based on its contents.

Protected 関数

OnElementsAddedCalled when GraphElements are added to the Scope.
OnElementsRemovedCalled when GraphElements are removed from the Scope.
ScheduleUpdateGeometryFromContentSchedules the update of the size and position of the Scope based on its contents.
SetScopePositionOnlyChange the position of the scope but does not move its elements.

継承メンバー

変数

capabilitiesThe GraphElement's capabilities.
elementTypeColorThe color used for the MiniMap view.
layerThe GraphElement's layer in the graph.
selectedTrue if the GraphElement is currently selected.
showInMiniMapWhether the element is shown in the minimap.
titleThe GraphElement's title.

Public 関数

GetGlobalCenterGet the GraphElement's center point.
IsAscendableChecks if the GraphElement is automatically brought to front when selected.
IsCopiableChecks whether the GraphElement is copiable.
IsDroppableThe GraphElement is drag&droppable.
IsGroupableChecks whether the GraphElement is groupable.
IsMovableThe GraphElement is movable.
IsRenamableThe GraphElement is renamable.
IsResizableThe GraphElement is resizable.
IsSelectableThe GraphElement is selectable.
IsSelectedThe GraphElement is currently selected in specific container.
IsSnappableChecks whether the GraphElement is snappable.
IsStackableChecks whether the GraphElement is stackable.
OnSelectedCalled when the GraphElement is selected.
OnUnselectedCalled when the GraphElement is unselected.
ResetLayerReset the GraphElement to its original layer.
SelectSelect the GraphElement.
UnselectDeselect the GraphElement.

Protected 関数

OnCustomStyleResolvedCalled when the custom style properties are resolved.