Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStateMachineAssetPath(StateMachine)

Retrieves the file path of the asset associated with the specified StateMachine.
Read time 1 minuteLast updated 10 days ago

Definition

public static string GetStateMachineAssetPath(StateMachine stateMachine)

Parameters

stateMachine

The state machine whose asset path you want to retrieve.

Returns

Type

Description

stringThe asset's file path.

Remarks

This is the StateMachine counterpart of GraphDatabase.GetGraphAssetPath.