Method CreateAsset
CreateAsset<T>(string)
Create and return a new asset in a smart location based on the current selection and then select it.
Declaration
public static T CreateAsset<T>(string name) where T : ScriptableObject
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new asset. Do not include the .asset extension. |
Returns
| Type | Description |
|---|---|
| T | The new asset. |
Type Parameters
| Name | Description |
|---|---|
| T |