Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StickyNote

Instantiates a [GraphElement] used for comment text.
Read time 8 minutesLast updated 9 days ago

Definition

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

Static Fields

Value

Description

defaultSizeThe default size of the [StickyNote].

Constructors

Constructor

Description

StickyNote()Constructor for [StickyNote].
StickyNote(System.String,UnityEngine.Vector2)Constructor for [StickyNote].
StickyNote(UnityEngine.Vector2)Constructor for [StickyNote].

Properties

Property

Description

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

Methods

Method

Description

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

Inheritance

Inherited Members