Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Placemat

Allows interactive manipulation of elements (drag, hide) over a virtual placemat.
Read time 9 minutesLast updated 11 days ago

Definition

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

Constructors

Constructor

Description

Placemat()Constructor.

Properties

Property

Description

CollapsedWhether the placemat is collapsed (true) or expanded (false).
CollapsedElementsThe list of elements hidden by the placemat when collapsed. The list is empty when the placemat is expanded.
CollapsedSizeThe size of the placemat when collapsed.
ColorThe color of the placemat.
ExpandedPositionThe rect representing the expanded placemat, regardless of the current collapsed state.
titleThe title of the placemat.
UncollapsedSizeThe size of the placemat when expanded.
ZOrderThe Z order of the placemat in the PlacematContainer.

Methods

Method

Description

BuildContextualMenuAdds menu items to the placemat contextual menu.
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.
SetCollapsedElementsSets the list of collapsed elements. This method is not meant to be called.
SetPositionSets the placemat position
StartEditTitleSets the focus to the title of placemat and sets the title for editing.

Static Methods

Method

Description

ComputeElementBoundsCalculates the bounds of a list of graph elements.

Enums

Enum

Description

Placemat.MinSizePolicyDetermines the behavior of the CalculateSelectedNodeBounds method.

Inheritance

Inherited Members