CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ CreateAsNew() [2/3]

static Object CreateAsNew ( [NotNull] Object instance,
[NotNull] Path path )
static

Writes the object to disk. Generates a unique file name if an asset exists at the path.

Creates missing folders in the destination path.

Parameters
instanceThe object to save as an asset file.
pathPath to a file with extension. Note that the asset's actual file name may differ.
Returns
The newly created asset.
See also