Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PromptInProjectBrowserToCreateNewAsset<T>(string)

Creates a new state machine asset and activates the naming field in the Project Browser.
Read time 1 minuteLast updated a month ago

Definition

public static void PromptInProjectBrowserToCreateNewAsset<T>(string defaultName = "New State Machine") where T : StateMachine, new()

Parameters

defaultName

The default name for the new asset if the user does not rename it. Defaults to "New State Machine" if not specified.

Remarks