Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

StateMachineLogger

class in Unity.GraphToolkit.Editor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Properties

Property Description
StateMachineChanges The set of changes recorded on the state machine during the current StateMachine.OnStateMachineChanged callback.

Public Methods

Method Description
Log Logs an informational message.
LogError Logs an error message.
LogWarning Logs a warning message.