# GetStateMachineAssetGUID(StateMachine)

> Retrieves the globally unique identifier (GUID) for the asset associated with the specified StateMachine.

## Definition

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

```csharp
public static GUID GetStateMachineAssetGUID(StateMachine stateMachine)
```

### Parameters

**** (\[StateMachine]\(/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachine)): The state machine whose asset GUID you want to retrieve.

### Returns

| Type | Description                          |
| ---- | ------------------------------------ |
| GUID | The GUID of the state machine asset. |

### Remarks

This is the [StateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachine.md) counterpart of [GraphDatabase.GetGraphAssetGUID](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphdatabase/getgraphassetguid.md).
