GraphLogger
Provides methods for logging messages, warnings, and errors associated with a graph. Also tracks what changed in the graph during the current callback.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public class GraphLogger
Remarks
GraphLoggerWhen 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.
Properties
Property | Description |
|---|---|
| GraphChanges | The set of changes recorded on the graph during the current Graph.OnGraphChanged callback. |
Methods
Method | Description |
|---|---|
| Log | Logs an informational message. |
| LogError | Logs an error message. |
| LogWarning | Logs a warning message. |