ChangeKind
Categories of change that can be reported on a graph or state machine element.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
[Flags]public enum ChangeKind
Remarks
ChangeKind is a bit-flag enum, so a single value can describe multiple categories of change at once. Combine values with and test them with or HasFlag.
|&A value of ChangeKind.None means no change categories are set.
Combine flags with the bitwise-or operator, and test them with bitwise-and or HasFlag:
Examples
ChangeKind kinds = ChangeKind.Added | ChangeKind.Data;if ((kinds & ChangeKind.Added) != 0) { /* newly added */ }if (kinds.HasFlag(ChangeKind.Data)) { /* data changed */ }
Fields
Value | Description |
|---|---|
| Added | The element was added to the graph or state machine. |
| Data | Model data (for example, an inspectable field) changed. |
| Grouping | Grouping of variables in the blackboard changed. |
| Layout | The position or dimension of the element changed. |
| None | No change categories. |
| PortChanged | A port on the node changed; inspect ChangedNode.ChangedPorts for details. |
| RecreateView | The view for the element must be torn down and recreated (for example, a variable node flipped between Get and Set). |
| Removed | The element was removed from the graph or state machine. |
| Style | The visual style (color, etc.) of the element changed. |
| Topology | Graph or state machine topology changed; typically, a wire or transition was connected or disconnected. |