Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ChangeKind

Categories of change that can be reported on a graph or state machine element.
Read time 1 minuteLast updated 6 days ago

Definition

[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

AddedThe element was added to the graph or state machine.
DataModel data (for example, an inspectable field) changed.
GroupingGrouping of variables in the blackboard changed.
LayoutThe position or dimension of the element changed.
NoneNo change categories.
PortChangedA port on the node changed; inspect ChangedNode.ChangedPorts for details.
RecreateViewThe view for the element must be torn down and recreated (for example, a variable node flipped between Get and Set).
RemovedThe element was removed from the graph or state machine.
StyleThe visual style (color, etc.) of the element changed.
TopologyGraph or state machine topology changed; typically, a wire or transition was connected or disconnected.