기술 자료

Unity Engine

Unity Engine

CreateStateMachine<T>(string)

Creates a new state machine asset of type T at the specified file path.
읽는 시간 1분최근 업데이트: 2달 전

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.