LoadStateMachineForImporter<T>(string)
Loads a fresh instance of the StateMachine of type T from disk for use in the asset import pipeline.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public static T LoadStateMachineForImporter<T>(string assetPath) where T : StateMachine
Parameters
The path to the state machine asset file.
Returns
Type | Description |
|---|---|
| T | A new instance of the state machine read directly from disk. |
Remarks
This is the StateMachine counterpart of GraphDatabase.LoadGraphForImporter.