# PromptInProjectBrowserToCreateNewAsset<T>(string)

> Creates a new state machine asset and activates the naming field in the Project Browser.

## Definition

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

```csharp
public static void PromptInProjectBrowserToCreateNewAsset<T>(string defaultName = "New State Machine") where T : StateMachine, new()
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The default name for the new asset if the user does not rename it. Defaults to "New State Machine" if not specified.

### Remarks

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