LoadStateMachine<T>(string)
Loads a StateMachine of type T from the asset at the specified path.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public static T LoadStateMachine<T>(string assetPath) where T : StateMachine
Parameters
The relative path to the state machine asset.
Returns
Type | Description |
|---|---|
| T | The loaded state machine instance, or |
Remarks
This is the StateMachine counterpart of GraphDatabase.LoadGraph.