Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StackNode

Use this class to customize StackNodes and to manage dragging GraphElements over StackNodes.
Read time 11 minutesLast updated 5 days ago

Definition

public class StackNode : Node, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, ICollectibleElement, IDropTarget

Constructors

Constructor

Description

StackNode()StackNode constructor.

Properties

Property

Description

contentContainerThe content container of this StackNode.
dragEnteredIndicates if items from this stack are currently being dragged.
dropPreviewTemplateUse this property to customize the preview that appears when GraphElements are dragged over the StackNode.
hasMultipleSelectionSupportReturns true if the StackNode supports multiselection.
headerContainerUse this property to customize the header for this StackNode.

Methods

Method

Description

AcceptsElementChecks whether the specified GraphElement can be added to this StackNode.
AddElementAdds the specified GraphElement to the StackNode.
CanAcceptDropIndicates whether this StackNode accepts the current drop event.
CollectElementsRetrieves the set of nodes contained in this stack and its edges. The retrieved graph elements match a specific condition.
DragEnterThis method is automatically called when a drag leave event occurs.
DragExitedThis method is automatically called when a drag exit event occurs.
DragLeaveThis method is automatically called when a drag leave event occurs.
DragPerformThis method is automatically called when a drop event occurs.
DragUpdatedThis method is automatically called when a drag updated event occurs.
GetInsertionIndexRetrieves the insertion index in the StackNode if an item is dropped at the specified world position.
HandleEventBubbleUpExecutes logic on this element during the BubbleUp phase, immediately before this element's BubbleUp callbacks. Calling StopPropagation will prevent further invocations of this method along the propagation path.
InsertElementInserts the specified GraphElement at the specified index in this StackNode.
OnCustomStyleResolvedCalled when the custom style properties are resolved.
OnSeparatorContextualMenuEventThis method is automatically called when a contextual menu is about to appear on a StackNode separator.
OnStartDraggingThis method is automatically called when an element of the stack is about to be dragged out of it.
RemoveElementRemoves the specified GraphElement from this StackNode.

Inheritance

Inherited Members