Provides methods for logging messages, warnings, and errors associated with a state machine.
StateMachineLogger integrates with the Unity Console to display logs relevant to state machine operations.
When a context is provided,
the message is also visually represented in the state machine editor using appropriate markers (error, warning, or info).
Console messages are only shown if the state machine editor for the corresponding state machine 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 state machine via StateMachineLogger.StateMachineChanges.
| Property | Description |
|---|---|
| StateMachineChanges | The set of changes recorded on the state machine during the current StateMachine.OnStateMachineChanged callback. |
| Method | Description |
|---|---|
| Log | Logs an informational message. |
| LogError | Logs an error message. |
| LogWarning | Logs a warning message. |