Table of Contents
Extensions for Sprites
public static class SpriteExt
Inheritance System.Object SpriteExt
Set this Sprite's texture
public static void SetTexture(this Sprite sprite, Texture2D newTexture);
sprite
UnityEngine.Sprite
newTexture
UnityEngine.Texture2D
Attempts to save a Sprite to a PNG at the given filePath, even if it isn't marked as readable
public static bool TrySaveToPNG(this Sprite sprite, string filePath);
sprite
UnityEngine.Sprite
filePath
System.String