StickyNote
Instantiates a [GraphElement] used for comment text.
Read time 8 minutesLast updated 9 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
- Inherits from: GraphElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, IResizable
public class StickyNote : GraphElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, IResizable
Static Fields
Value | Description |
|---|---|
| defaultSize | The 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 |
|---|---|
| contents | The textual content of the [StickyNote]. |
| fontSize | The font size of the [StickyNote]. |
| theme | The visual theme of the [StickyNote]. |
| title | The title of the [StickyNote]. |
Methods
Method | Description |
|---|---|
| BuildContextualMenu | Builds the [StickyNote] contextual menu. |
| FitText | Resizes the [StickyNote] so that its textual content is visible. |
| GetPosition | Gets the position of the [StickyNote]. |
| OnResized | Called when the [StickyNote] is about to be resized. |
| OnStartResize | Called when the [StickyNote] will be resized. |
| SetPosition | Sets the position of the [StickyNote]. |