Summary
[Editor-Only]
If a
Animancer.StringAsset
exists with the specified `name`, this method returns it.
If multiple assets have the same name, any one of them will be returned.
Otherwise, a new asset will be saved in the `createDirectory` and returned.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- StringAsset
Syntax
public static StringAsset FindOrCreate(StringReference name, string createDirectory, out string path)
Remarks
If no `createDirectory` is specified, this method will ask the user to select a directory manually.
Parameters
Name | Type | Description |
---|---|---|
name | StringReference | |
createDirectory | string | |
path | string |
Return Value
Type | Description |
---|---|
StringAsset |