Documentation

Unity Engine

Unity Engine

LoadStateMachine<T>(string)

Loads a StateMachine of type T from the asset at the specified path.
Read time 1 minuteLast updated 2 months ago

Definition

public static T LoadStateMachine<T>(string assetPath) where T : StateMachine

Parameters

assetPath

The relative path to the state machine asset.

Returns

Type

Description

TThe loaded state machine instance, or
null
if no matching state machine is found.

Remarks

This is the StateMachine counterpart of GraphDatabase.LoadGraph.