Method SaveAndGetTexture
SaveAndGetTexture(Texture2D, String, TextureWrapMode)
Saves a texture to a specified path, and returns a reference of the new asset.
Declaration
public static Texture2D SaveAndGetTexture(Texture2D texture, string path, TextureWrapMode mode = TextureWrapMode.Repeat)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | texture | Texture to save. |
| String | path | path where you want to save the texture. |
| TextureWrapMode | mode | Texture wrap mode (default: Repeat). |
Returns
| Type | Description |
|---|---|
| Texture2D | A Texture2D that references the newly created asset. |