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

◆ CreateAsNew() [3/3]

static Object CreateAsNew ( [NotNull] String contents,
[NotNull] Path path )
static

Writes the string to disk, then imports and loads the asset. Generates a unique file name if an asset exists at the path.

Creates missing folders in the destination path.

Parameters
contentsThe string to write.
pathPath to a file with extension. Note that the asset's actual file name may differ.
Returns
The newly created asset.
See also