# DebugStyles

> Provides theme-aware visual resources for representing evaluation states when you debug a graph.

## Definition

* **Type:** Class
* **Namespace:** [Unity.GraphToolkit.Editor.GraphVisualization](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization.md)
* **Assembly:** UnityEditor

```csharp
public static class DebugStyles
```

## Remarks

The colors adapt to the current Editor theme, so you don't have to track the theme yourself.

Don't rely on colors alone to communicate a debug state. [DebugStyles.True](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/true.md) and [DebugStyles.False](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/false.md) differ mainly in hue, so users with a color vision deficiency might not be able to tell them apart. Pair the color with a second visual cue, such as an icon (e.g. [ConditionReference.Icon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/conditionreference/icon.md)), a dash pattern (e.g. [TransitionReference.IsDashed](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/transitionreference/isdashed.md)), a line width override (e.g. [TransitionReference.WidthOverride](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/transitionreference/widthoverride.md)) or an animation (e.g. [GraphMotion.Play](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/graphmotion/play.md)) so that the state remains readable without color.

A graph tool sets a debug color and icon on a transition element:

## Examples

```csharp
using var debugContext = Registry.CreateVisualizationContext(myStateMachine.ID);
TransitionReference transitionRef = debugContext.GetTransitionReference(myTransition.ID);
transitionRef.LineColor = DebugStyles.Pending;
transitionRef.Icon = DebugStyles.PendingIcon;
```

## Static Properties

| Property                                                                                                               | Description                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [False](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/false.md)             | The suggested color to represent a false or failing state during debug visualization.        |
| [FalseIcon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/falseicon.md)     | The suggested icon to represent a false or failing state during debug visualization.         |
| [Pending](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/pending.md)         | The suggested color to represent a pending or undetermined state during debug visualization. |
| [PendingIcon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/pendingicon.md) | The suggested icon to represent a pending or undetermined state during debug visualization.  |
| [True](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/true.md)               | The suggested color to represent a true or passing state during debug visualization.         |
| [TrueIcon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/debugstyles/trueicon.md)       | The suggested icon to represent a true or passing state during debug visualization.          |
