A cache for resized images. Used with the resize:// protocol.
Static Public Member Functions | |
static ResizedImage | Get (string path) |
Get the image for the given URL. May return null if it's not been cached. More... | |
static ResizedImage | Add (string path, Texture2D originalImage) |
Adds the given image to the cache and auto scales it based on the current screen. More... | |
Static Public Attributes | |
static Dictionary< string, ResizedImage > | Images =new Dictionary<string,ResizedImage>() |
All resized images. More... | |
|
inlinestatic |
Adds the given image to the cache and auto scales it based on the current screen.
|
inlinestatic |
Get the image for the given URL. May return null if it's not been cached.
|
static |
All resized images.