PromptInProjectBrowserToCreateNewAsset<T>(string)
Creates a new state machine asset and activates the naming field in the Project Browser.
Read time 1 minuteLast updated a month ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public static void PromptInProjectBrowserToCreateNewAsset<T>(string defaultName = "New State Machine") where T : StateMachine, new()
Parameters
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 counterpart of GraphDatabase.PromptInProjectBrowserToCreateNewAsset.