CreateStateMachine<T>(string)
Creates a new state machine asset of type T at the specified file path.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public static T CreateStateMachine<T>(string assetPath) where T : StateMachine, new()
Parameters
The relative path for the new asset (e.g., "Assets/Graphs/MyStateMachine.mystatemachine").
Returns
Type | Description |
|---|---|
| T | The created state machine instance. |
Remarks
This is the StateMachine counterpart of GraphDatabase.CreateGraph.