Blackboard
GraphElement that enables user to dynamically define members of a Graph (such as fields/properties) grouped by sections (BlackboardSection).
Read time 9 minutesLast updated 8 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
- Inherits from: GraphElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, ISelection
public class Blackboard : GraphElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, ISelection
Constructors
Constructor | Description |
|---|---|
| Blackboard(UnityEditor.Experimental.GraphView.GraphView) | Constructs a Blackboard. |
Properties
Property | Description |
|---|---|
| addItemRequested | Called when user clicks on the Add button of this Blackboard. |
| contentContainer | The content container of this Blackboard. |
| editTextRequested | Called when user has edited the text of this BlackboardField. |
| graphView | The GraphView that the Blackboard is attached to. |
| moveItemRequested | Called when user has dragged and dropped a BlackboardField to a new location inside its BlackboardSection. |
| scrollable | Indicates whether the content of this Blackboard can be vertically scrolled by user. It is false by default. |
| selection | All selected elements in the GraphView that the Blackboard is attached to. |
| subTitle | The subtitle of this Blackboard. |
| title | The title of this Blackboard. |
| windowed | Set to true when the Blackboard displays in a separate window. Set to false when the Blackboard displays in the GraphView. |
Methods
Method | Description |
|---|---|
| AddToSelection | Adds an element to the selection in the GraphView that the Blackboard is attached to. |
| ClearSelection | Clears the selection in the GraphView that the Blackboard is attached to. |
| RemoveFromSelection | Removes an element from the selection in the GraphView that the Blackboard is attached to. |