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

◆ Create() [1/3]

static Object Create ( [NotNull] Byte[] contents,
[NotNull] Path path )
static

Writes the byte array to disk, then imports and loads the asset. Overwrites any existing file.

Creates missing folders in the destination path.

Parameters
contentsThe bytes to write.
pathPath to a file with extension.
Returns
The newly created asset.
See also

Referenced by Asset.File.LoadOrCreate< T >().

+ Here is the caller graph for this function: