Method SaveAsSourceAsset
SaveAsSourceAsset(SpriteLibraryAsset, string, string)
Creates a new Sprite Library Source Asset at a given path.
Declaration
public static string SaveAsSourceAsset(this SpriteLibraryAsset spriteLibraryAsset, string path, string mainLibraryPath = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SpriteLibraryAsset | spriteLibraryAsset | Sprite Library Asset to be saved. |
| string | path | Save path. Must be within the Assets folder. |
| string | mainLibraryPath | A path to the main library. Null if there is no main library. |
Returns
| Type | Description |
|---|---|
| string | A relative path to the Project with correct extension. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Throws when the save path is invalid/ |