CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
|
Creates an asset file from an existing UnityEngine.Object instance.
The object must not already be an asset file (throws exception).
asset | The instance to create as an asset file. |
path | Path where to save the new asset file, with extension. |
overwriteExisting | If true, will overwrite any existing asset at path. Otherwise does not overwrite but generates a unique filename (default). |
ArgumentNullException | If the object is null. |
ArgumentNullException | If the path is null. |
ArgumentException | If the object is already an asset on disk. |
Definition at line 158 of file Asset.cs.