I'm trying to make sure that an image loaded into a game is of the ARGB32 format, but I can't seem to get Unity to compare the two.
Code:
if(image.format == TextureFormat.ARGB32)
{
// Stuff
}
This gives me an error saying that image.format is an object, and not TextureFormat. The docs say otherwise. What's the deal here?
↧