Version: 2023.1
언어: 한국어
Experimental: this API is experimental and might be changed or removed in the future.

Placemat

class in UnityEditor.Experimental.GraphView

/

다음으로부터 상속:Experimental.GraphView.GraphElement

매뉴얼로 전환

설명

Allows interactive manipulation of elements (drag, hide) over a virtual placemat.

변수

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.

생성자

PlacematConstructor.

Public 함수

SetPositionSets the placemat position
StartEditTitleSets the focus to the title of placemat and sets the title for editing.

보호되는 함수

BuildContextualMenuAdds menu items to the placemat contextual menu.
SetCollapsedElementsSets the list of collapsed elements. This method is not meant to be called.

정적 함수

ComputeElementBoundsCalculates the bounds of a list of graph 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.
GetPositionGet the GraphElement position.
HitTestSee if point is over the GraphElement.
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.

보호되는 함수

OnCustomStyleResolvedCalled when the custom style properties are resolved.