ドキュメント

Unity Engine

Unity Engine

CreateStateMachine<T>(string)

Creates a new state machine asset of type T at the specified file path.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static T CreateStateMachine<T>(string assetPath) where T : StateMachine, new()

Parameters

assetPath

The relative path for the new asset (e.g., "Assets/Graphs/MyStateMachine.mystatemachine").

Returns

Type

Description

TThe created state machine instance.

Remarks

This is the StateMachine counterpart of GraphDatabase.CreateGraph.