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

StickyNote

class in UnityEditor.Experimental.GraphView

/

継承:Experimental.GraphView.GraphElement


実装インターフェース:IEventHandler, IExperimentalFeatures, IResizable, IResolvedStyle, ISelectable, ITransform, ITransitionAnimations, IVisualElementScheduler

マニュアルに切り替える

説明

Instantiates a [GraphElement] used for comment text.

Static 変数

defaultSizeThe default size of the [StickyNote].

変数

contentsThe textual content of the [StickyNote].
fontSizeThe font size of the [StickyNote].
themeThe visual theme of the [StickyNote].
titleThe title of the [StickyNote].

コンストラクタ

StickyNoteConstructor for [StickyNote].

Public 関数

BuildContextualMenuBuilds the [StickyNote] contextual menu.
FitTextResizes the [StickyNote] so that its textual content is visible.
GetPositionGets the position of the [StickyNote].
OnResizedCalled when the [StickyNote] is about to be resized.
OnStartResizeCalled when the [StickyNote] will be resized.
SetPositionSets the position of the [StickyNote].

継承メンバー

変数

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.
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.

Protected 関数

OnCustomStyleResolvedCalled when the custom style properties are resolved.