Provides methods for logging messages, warnings, and errors associated with a graph. Also tracks what changed in the graph during the current callback.
GraphLogger integrates with the Unity Console to display logs relevant to graph operations.
When a context is provided,
the message is also visually represented in the graph editor using appropriate markers (error, warning, or info).
Console messages are only shown if the graph editor for the corresponding graph is currently open. If the editor is closed,
the logs will not appear in the Unity Console.
The logger also provides read-only access to what changed in the graph via GraphLogger.GraphChanges.
| Property | Description |
|---|---|
| GraphChanges | The set of changes recorded on the graph during the current Graph.OnGraphChanged callback. |
| Method | Description |
|---|---|
| Log | Logs an informational message. |
| LogError | Logs an error message. |
| LogWarning | Logs a warning message. |