Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Scope

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.
Read time 10 minutesLast updated 4 days ago

Definition

public class Scope : GraphElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable

Constructors

Constructor

Description

Scope()Scope constructor.

Properties

Property

Description

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.

Methods

Method

Description

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.
OnElementsAddedCalled when GraphElements are added to the Scope.
OnElementsRemovedCalled when GraphElements are removed from 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.
ScheduleUpdateGeometryFromContentSchedules the update of the size and position of the Scope based on its contents.
SetPositionSets the geometry of the Scope.
SetScopePositionOnlyChange the position of the scope but does not move its elements.
UpdateGeometryFromContentUpdates the size and position of the Scope based on its contents.

Inheritance

Inherited Members